Get a bay occupancy
Returns one occupancy by id, current or ended, and whether it is disputed. **Required permission:** `traffic.assignment:read`
/traffic/v1/bay-occupancies/{id}Returns one occupancy by id, current or ended, and whether it is disputed.
Required permission: traffic.assignment:read
Authorization
oauth2 In: header
Path Parameters
Response Body
*/*
curl -X GET "https://example.com/traffic/v1/bay-occupancies/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"}Search bay occupancies
Returns the occupancies of a bay or of a coach, newest first, page by page, each with its coach. With open=true, only the one standing now: an empty page means the bay is free, or the coach stands at no bay. **Required permission:** `traffic.assignment:read`
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`