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`
/traffic/v1/departuresAdds 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
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/departures" \ -H "Content-Type: application/json" \ -d '{ "calls": [ { "service_kind": "BOARD_ONLY", "stop_id": "string" } ], "itinerary_id": "string", "reason": "string", "timetable_service_date": "2019-08-24" }'{ "calls": [ { "announced_departure": true, "arrival_time": "string", "day_offset": 0, "departure_time": "string", "service_kind": "BOARD_ONLY", "stop_id": "string" } ], "departure": { "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" }, "one_off_rule_version": 0, "one_off_rule_version_id": "string"}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`
Read how fast a day's cancellations were announced
For a station day, today unless one is named: the cancellations recorded, those whose announcement the broker acknowledged, those acknowledged within the station's target (30 seconds unless it says otherwise), those still waiting, and the slowest. **Required permission:** `traffic.cancellation-announcement:read`