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`
/traffic/v1/departuresA 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
Authorization
oauth2 In: header
Query Parameters
datedate-timedate-timeZero-based page index, at most 10000.
int320 <= value <= 10000Page size, at most 200.
int320 <= value <= 200An operational view: SELLABLE, ASSIGNABLE or DISPLAYABLE — the departures still scheduled, not closed and not withdrawn. Any narrower window is the owning module's.
A carrier: the departures it runs — those whose timetable names an authorization it holds that day, and those one of its coaches is committed to.
Response Body
*/*
curl -X GET "https://example.com/traffic/v1/departures"{ "complete_through": "2019-08-24", "data": [ { "bay": { "basis": "CURRENT", "bay_code": "string", "bay_id": "string", "standing": "CONFIRMED" }, "carrier": { "id": "string", "name": "string" }, "closed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "delay_minutes": 0, "departure_at": "2019-08-24T14:15:22Z", "generation_source": "SCHEDULE", "id": "string", "itinerary_id": "string", "line_id": "string", "planned_departure_at": "2019-08-24T14:15:22Z", "planned_station_call_local_datetime": "2019-08-24T14:15:22Z", "schedule_id": "string", "station_call_local_datetime": "2019-08-24T14:15:22Z", "station_operational_date": "2019-08-24", "status": "SCHEDULED", "timetable_service_date": "2019-08-24", "updated_at": "2019-08-24T14:15:22Z" } ], "page": 0, "size": 0, "total": 0}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`
Create a one-off departure
Adds a departure no schedule produces, when the station's one-off-service rule permits it. Every stop of the itinerary needs a call. **Required permission:** `traffic.departure:write`