SmartGare
API referenceEndpoints

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`

DELETE/referential/v1/lines/{lineId}/routes/{routeCode}

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

AuthorizationBearer <token>

In: header

Response Body

*/*

*/*

curl -X DELETE "https://example.com/referential/v1/lines/{lineId}/routes/{routeCode}"
{  "deleted_at": "2019-08-24T14:15:22Z",  "deleted_by": "string",  "itinerary_ids": [    "string"  ],  "line_id": "string",  "route_code": "string"}