API referenceEndpoints
Delay a departure
**Required permission:** `traffic.departure:write`
POST
/traffic/v1/departures/{id}/delayRequired permission: traffic.departure:write
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*DelayDepartureRequest
Response Body
*/*
curl -X POST "https://example.com/traffic/v1/departures/string/delay" \ -H "Content-Type: application/json" \ -d '{ "announced_departure_time": "2019-08-24T14:15:22Z", "reason": "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"}Read what is committed against a departure
The kinds committed against the departure as their holders answer now — a ticket sold, a coach committed, a bay assigned — and none when nothing is. No ticket, bay or coach itself is named. **Required permission:** `traffic.departure:read`
Reinstate a departure
**Required permission:** `traffic.departure:write`