API referenceEndpoints
List a route's pauses
Every pause of the route by first day, ended and withdrawn ones included. **Required permission:** `referential.itinerary:read`
GET
/referential/v1/lines/{lineId}/routes/{routeCode}/pausesEvery pause of the route by first day, ended and withdrawn ones included.
Required permission: referential.itinerary:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Response Body
*/*
curl -X GET "https://example.com/referential/v1/lines/{lineId}/routes/{routeCode}/pauses"[ { "changed_at": "2019-08-24T14:15:22Z", "changed_by": "string", "ends_on": "2019-08-24", "id": "string", "line_id": "string", "paused_at": "2019-08-24T14:15:22Z", "paused_by": "string", "reason": "string", "route_code": "string", "starts_on": "2019-08-24", "withdrawn": true }]Delete a route nothing is on record against
Deletes every version of the route, its calling points and its pauses, once no timetable or departure is on record against it; otherwise pause it instead. **Required permission:** `referential.itinerary:write`
Pause a route
Every version of the route does not run from a day, today or later, through a last day or with none until it is resumed; its versions and timetables are kept. **Required permission:** `referential.itinerary:write`