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`
/referential/v1/lines/{id}/identityStates 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
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X PUT "https://example.com/referential/v1/lines/string/identity" \ -H "Content-Type: application/json" \ -d '{ "code": "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
**Required permission:** `referential.line:read`
Retire a line
Closes a line for good (D151), unlike a suspension, which stays temporary. Answers the rules naming the line, read before anything changed; the line runs no coach from today, and the rules module keeps its rules on the list needing attention and announces each mandatory rule left with nothing in force (RULES-051). The rules are the rules module's facts, so the caller also needs `referential.rule:read`. **Required permission:** `referential.line:write`