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`
/traffic/v1/bay-schedulesEvery 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
Authorization
oauth2 In: header
Query Parameters
Start of the window, inclusive.
date-timeEnd of the window, exclusive.
date-timeOne bay, when the whole station's board is not wanted.
Response Body
*/*
*/*
curl -X GET "https://example.com/traffic/v1/bay-schedules?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{ "data": [ { "bay_id": "string", "items": [ { "departure_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "id": "string", "scheduled_departure_id": "string", "starts_at": "2019-08-24T14:15:22Z", "type": "BAY_ASSIGNMENT" } ] } ]}Give a held bay back
Ends a hold, so the bay is assignable again from that moment. Freeing a bay is not filling it: nothing is assigned to it in return. **Required permission:** `traffic.bay-availability:write`
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`