SmartGare
API referenceEndpoints

Fix the bay an authorized line leaves from

Records that a line, under the authorization covering it, leaves from a bay from a day. The bay must not be taken out of the plan for good, must be in a current departure zone and not its spare, and must follow the coordination bay rules. **Required permission:** `traffic.fixed-bay:write`

POST/traffic/v1/fixed-bays

Records that a line, under the authorization covering it, leaves from a bay from a day. The bay must not be taken out of the plan for good, must be in a current departure zone and not its spare, and must follow the coordination bay rules.

Required permission: traffic.fixed-bay:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*PlanFixedBayRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/fixed-bays" \  -H "Content-Type: application/json" \  -d '{    "authorization_id": "string",    "bay_id": "string",    "line_id": "string",    "reason": "string",    "starts_on": "2019-08-24"  }'
{  "authorization_id": "string",  "bay_id": "string",  "coordination_clash": "string",  "ended_at": "2019-08-24T14:15:22Z",  "ended_by": "string",  "ended_reason": "string",  "ends_on": "2019-08-24",  "id": "string",  "line_id": "string",  "planned_at": "2019-08-24T14:15:22Z",  "planned_by": "string",  "reason": "string",  "starts_on": "2019-08-24"}