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`
/traffic/v1/departures/{departureId}/bay-windowReturns 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
Authorization
oauth2 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"}Read what a departure is committed to
Returns the live commitments and the moment the answer was current as of, so a stale answer can be recognised as stale. A departure committed to nothing answers with nothing rather than failing. Once a coach is committed, it also answers the bay the fixed-bay plan gives the departure's line and the coach's authorization that day, or that the plan names none. **Required permission:** `traffic.assignment:read`
Read who can replace a departure's coach
In the order the supervisor is offered them: the same carrier's coaches free over the departure's window that the register lets take it over (`SPARE`, replaced directly); then the same line's later departures of that carrier whose coach could swap, both departures still able to run (`SWAP`, recorded as a programme swap); then other carriers' coaches, free and admitted the same way, each needing an agreement (`OTHER_CARRIER`, replaced as a sub-contract). Reading records nothing. **Required permission:** `traffic.assignment:read`