Correct a coach or bay decision recorded by mistake
Names the history entry recorded by mistake and the true coach or bay, which passes the same checks as replacing the coach or moving the departure; the wrong entry stays as it was and a correction entry names it. It is never counted as a move or a change. A caller without the planner's right corrects only a decision of the current station day. **Required permission:** `traffic.decision-correction:write`
/traffic/v1/decision-correctionsNames the history entry recorded by mistake and the true coach or bay, which passes the same checks as replacing the coach or moving the departure; the wrong entry stays as it was and a correction entry names it. It is never counted as a move or a change. A caller without the planner's right corrects only a decision of the current station day.
Required permission: traffic.decision-correction: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/decision-corrections" \ -H "Content-Type: application/json" \ -d '{ "corrects_entry_id": "string", "reason": "string" }'{ "assignment_type": "BAY", "bay_id": "string", "corrected_at": "2019-08-24T14:15:22Z", "corrected_by": "string", "correction_entry_id": "string", "corrects_entry_id": "string", "scheduled_departure_id": "string", "standing_assignment_id": "string", "vehicle_id": "string"}Lift a fault window
Clears a declared fault, so the bay can take a coach again from that moment. Freeing a bay is not filling it: nothing is assigned to it in return. **Required permission:** `traffic.bay-unavailability:write`
Search departures
A line's, a carrier's, a day's or a window's departures, or an operational view of them (sellable, assignable, displayable), in stable pages, with the day the schedule is known complete through. Each departure names its carrier and its bay with how firmly it is known: confirmed, provisional, planned, none, or could not be read — the bay committed now for today and later, the one recorded for past days. **Required permission:** `traffic.departure:read`