Suggest bays for a departure
Returns the bays an assignment would accept for the departure over the window, best first: bays of a family the station prefers for the line, then the others, each in the order the bays are signed. A bay too short for the committed coach, one a coach still stands at, and one held by another departure, held aside or out of service for the window are left out. Nothing is assigned; an empty list means no bay fits. **Required permission:** `traffic.assignment:read`
/traffic/v1/bay-suggestionsReturns the bays an assignment would accept for the departure over the window, best first: bays of a family the station prefers for the line, then the others, each in the order the bays are signed. A bay too short for the committed coach, one a coach still stands at, and one held by another departure, held aside or out of service for the window are left out. Nothing is assigned; an empty list means no bay fits.
Required permission: traffic.assignment:read
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
*/*
curl -X POST "https://example.com/traffic/v1/bay-suggestions" \ -H "Content-Type: application/json" \ -d '{ "planned_from": "2019-08-24T14:15:22Z", "planned_until": "2019-08-24T14:15:22Z", "scheduled_departure_id": "string" }'{ "data": [ { "bay_code": "string", "bay_id": "string", "family": "string", "family_rule_version_id": "string", "preferred": true } ]}Read the forward bay schedule
Every usable bay over the window, with what stands on it — commitments, holds and unavailabilities on one timeline each. A bay with nothing planned is on the board with an empty timeline. Overlaps are returned as they are. **Required permission:** `traffic.bay-availability:read`
Take a bay out of service
Declares a bay unusable for a window because of works, an incident or blocked access. **Required permission:** `traffic.bay-unavailability:write`