API referenceEndpoints
Get a line
**Required permission:** `referential.line:read`
GET
/referential/v1/lines/{id}Required permission: referential.line:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
*/*
*/*
curl -X GET "https://example.com/referential/v1/lines/string"{ "code": "string", "created_at": "2019-08-24T14:15:22Z", "id": "string", "name": "string", "retired_at": "2019-08-24T14:15:22Z", "status": "string", "suspension_reason": "string", "updated_at": "2019-08-24T14:15:22Z"}Get a line by code
**Required permission:** `referential.line:read`
Change a line's code and name
States the line's code and display name again, e.g. code LIG-AIT-ATTAB-RABAT, name "Rabat – Casablanca". A name left out or blank leaves the line unnamed. A suspended line can be changed too. Answers the line as it now reads. **Required permission:** `referential.line:write`