SmartGare
API referenceEndpoints

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`

POST/referential/v1/lines/{lineId}/routes/{routeCode}/pauses

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

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*PauseRouteRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/lines/{lineId}/routes/{routeCode}/pauses" \  -H "Content-Type: application/json" \  -d '{    "from": "2019-08-24",    "reason": "string"  }'
{  "ends_on": "2019-08-24",  "id": "string",  "line_id": "string",  "paused_at": "2019-08-24T14:15:22Z",  "paused_by": "string",  "route_code": "string",  "starts_on": "2019-08-24"}