Mark a bay occupied
Records the moment a coach starts standing at the bay. The first observation is the bay's answer: an identical one changes nothing, one from the same source is a conflict, and one from another accepted source either corroborates it or opens a disagreement beside it. **Required permission:** `traffic.assignment:write`
/traffic/v1/bay-assignments/{id}/occupancyRecords the moment a coach starts standing at the bay. The first observation is the bay's answer: an identical one changes nothing, one from the same source is a conflict, and one from another accepted source either corroborates it or opens a disagreement beside it.
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-assignments/string/occupancy" \ -H "Content-Type: application/json" \ -d '{ "occupied_at": "2019-08-24T14:15:22Z", "source": "string", "vehicle_id": "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"}Read one commitment's history
Returns the append-only entries about this commitment, in the order they happened. A departure's own journal spans every commitment it ever had; this is the trace of one of them. **Required permission:** `traffic.assignment:read`
Reassign a departure to another bay
Moves the departure to a different bay under a controlled reason. The commitment that stood is superseded and readable as it was; the one that now stands is a new record with its own identity and its own moment of commitment. **Required permission:** `traffic.assignment:write`