Mark a bay free
Records the moment the coach left, and answers with both instants on one record. A source that did not record the arrival cannot end it: it opens a disagreement instead, and the bay keeps the coach. **Required permission:** `traffic.assignment:write`
/traffic/v1/bay-occupancies/{id}/freeRecords the moment the coach left, and answers with both instants on one record. A source that did not record the arrival cannot end it: it opens a disagreement instead, and the bay keeps the coach.
Required permission: traffic.assignment:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/traffic/v1/bay-occupancies/string/free" \ -H "Content-Type: application/json" \ -d '{ "freed_at": "2019-08-24T14:15:22Z", "source": "string" }'{ "bay_assignment_id": "string", "bay_id": "string", "correction_status": "NONE", "freed_at": "2019-08-24T14:15:22Z", "freed_by": "string", "freed_source": "string", "id": "string", "occupied_at": "2019-08-24T14:15:22Z", "occupied_by": "string", "occupied_source": "string", "vehicle_id": "string"}Get a bay occupancy
Returns one occupancy by id, current or ended, and whether it is disputed. **Required permission:** `traffic.assignment:read`
Propose a day's bay plan
Proposes a bay for every live departure of the day (tomorrow when none is named), as the evening run does: over the window the bay hold in force gives, never a bay too short for the committed coach, occupied, taken, held aside or out of service, preferred families first. A departure already holding a bay is listed as it stands. Nothing is committed; a plan nobody confirmed is replaced. **Required permission:** `traffic.bay-plan:write`