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`
/traffic/v1/bay-unavailabilitiesDeclares a bay unusable for a window because of works, an incident or blocked access.
Required permission: traffic.bay-unavailability:write
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-unavailabilities" \ -H "Content-Type: application/json" \ -d '{ "bay_id": "string", "ends_at": "2019-08-24T14:15:22Z", "reason": "string", "starts_at": "2019-08-24T14:15:22Z" }'{ "bay_id": "string", "declared_at": "2019-08-24T14:15:22Z", "declared_by": "string", "ends_at": "2019-08-24T14:15:22Z", "id": "string", "lifted_at": "2019-08-24T14:15:22Z", "lifted_by": "string", "lifted_reason": "string", "reason": "string", "starts_at": "2019-08-24T14:15:22Z", "status": "ACTIVE"}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`
Get a fault window
Returns one declared unavailability by id, lifted or still in force. **Required permission:** `traffic.bay-availability:read`