SmartGare
API referenceEndpoints

Read the window a bay booking for the departure is given

Returns the window an operator's booking of a bay for this departure would be given now: the departure's time, less the preparation and plus the finishing the station's bay hold in force states, as the evening plan draws it. It serves clash warnings only; a bay is freed when its coach is seen leaving or an operator marks it free. A station with no bay hold in force answers `traffic.bay_hold_not_in_force`. **Required permission:** `traffic.assignment:read`

GET/traffic/v1/departures/{departureId}/bay-window

Returns the window an operator's booking of a bay for this departure would be given now: the departure's time, less the preparation and plus the finishing the station's bay hold in force states, as the evening plan draws it. It serves clash warnings only; a bay is freed when its coach is seen leaving or an operator marks it free. A station with no bay hold in force answers traffic.bay_hold_not_in_force.

Required permission: traffic.assignment:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/departures/{departureId}/bay-window"
{  "bay_hold_rule_version_id": "string",  "departure_at": "2019-08-24T14:15:22Z",  "departure_id": "string",  "planned_from": "2019-08-24T14:15:22Z",  "planned_until": "2019-08-24T14:15:22Z"}