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`
/traffic/v1/bay-plansProposes 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
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-plans" \ -H "Content-Type: application/json" \ -d '{}'{ "bay_hold_rule_version_id": "string", "confirmed_at": "2019-08-24T14:15:22Z", "confirmed_by": "string", "id": "string", "lines": [ { "bay_assignment_id": "string", "bay_id": "string", "departure_at": "2019-08-24T14:15:22Z", "outcome": "ASSIGNED", "planned_from": "2019-08-24T14:15:22Z", "planned_until": "2019-08-24T14:15:22Z", "preferred": true, "proposal": "BAY", "refusal_code": "string", "scheduled_departure_id": "string" } ], "proposed_at": "2019-08-24T14:15:22Z", "proposed_by": "string", "service_date": "2019-08-24", "shortages": [ { "capacity": 0, "demand": 0, "ends_at": "2019-08-24T14:15:22Z", "order_rule_version_id": "string", "scheduled_departure_ids": [ "string" ], "starts_at": "2019-08-24T14:15:22Z" } ], "status": "PROPOSED"}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`
Read a day's bay plan
The plan proposed for the day, and what the planner's confirmation made of it. **Required permission:** `traffic.assignment:read`