Assign a bay by hand
Commits a bay to a scheduled departure for its occupancy window. With no coach committed yet, the bay is held provisionally: no vehicle category is guessed and no eligibility rule is applied. **Required permission:** `traffic.assignment:write`
/traffic/v1/bay-assignmentsCommits a bay to a scheduled departure for its occupancy window. With no coach committed yet, the bay is held provisionally: no vehicle category is guessed and no eligibility rule is applied.
Required permission: traffic.assignment: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-assignments" \ -H "Content-Type: application/json" \ -d '{ "bay_id": "string", "reason": "string", "scheduled_departure_id": "string" }'{ "assigned_at": "2019-08-24T14:15:22Z", "assigned_by": "string", "bay_id": "string", "eligibility_status": "PENDING_VEHICLE", "family_override_reason": "string", "id": "string", "length_unknown_reason": "string", "open_conflict_ids": [ "string" ], "originated_from": "OPERATOR", "planned_from": "2019-08-24T14:15:22Z", "planned_until": "2019-08-24T14:15:22Z", "pre_assigned": true, "released_at": "2019-08-24T14:15:22Z", "released_by": "string", "released_reason": "DEPARTURE_CANCELLED", "rule_version_id": "string", "scheduled_departure_id": "string", "status": "CONFIRMED", "superseded_at": "2019-08-24T14:15:22Z", "superseded_by": "string", "superseded_reason": "CONFLICT_RESOLUTION"}Search bay assignments
Returns the commitments matching the filter, page by page, in the order coaches stand at the bay. A period selects every commitment whose occupancy window overlaps it, so one running from before the period into it is included. **Required permission:** `traffic.assignment:read`
Get a bay assignment
Returns one commitment by id, released or still standing. **Required permission:** `traffic.assignment:read`