API referenceEndpoints
Get a fault window
Returns one declared unavailability by id, lifted or still in force. **Required permission:** `traffic.bay-availability:read`
GET
/traffic/v1/bay-unavailabilities/{id}Returns one declared unavailability by id, lifted or still in force.
Required permission: traffic.bay-availability:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
*/*
curl -X GET "https://example.com/traffic/v1/bay-unavailabilities/string"{ "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"}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`
Lift a fault window
Clears a declared fault, so the bay can take a coach again from that moment. Freeing a bay is not filling it: nothing is assigned to it in return. **Required permission:** `traffic.bay-unavailability:write`