Extend a transport authorization's term
Moves validUntil later on the same instrument and returns its unchanged id. A lapsed authorization becomes active when the new term covers the station date; a revoked authorization remains revoked. **Required permission:** `referential.authorization:write`
/referential/v1/authorizations/{id}/termMoves validUntil later on the same instrument and returns its unchanged id. A lapsed authorization becomes active when the new term covers the station date; a revoked authorization remains revoked.
Required permission: referential.authorization:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
*/*
curl -X PATCH "https://example.com/referential/v1/authorizations/string/term" \ -H "Content-Type: application/json" \ -d '{ "valid_until": "2019-08-24" }'{ "access_window_minutes": 0, "arrival_axis_code": "string", "category_codes": [ "string" ], "coach": { "capacity": 0, "plate_number": "string", "uhf_tag_missing": true, "vehicle_id": "string" }, "commercial_name": "string", "coordination_id": "string", "created_at": "2019-08-24T14:15:22Z", "dossier": "string", "dossier_id": "string", "driver_code_issued_at": "2019-08-24T14:15:22Z", "grade_code": "string", "id": "string", "number": "string", "owner_name": "string", "series_code": "string", "service_type": "ARRIVEE", "source": { "document": "string", "page": "string", "row": "string" }, "status": "ACTIVE", "updated_at": "2019-08-24T14:15:22Z", "valid_from": "2019-08-24", "valid_until": "2019-08-24"}Set or correct where a transport authorization was read from
Names the document, page and row the authorization was read from, e.g. the station sheet, page 3, row 12, keeping the previous source in the history with who, when and why. The same source again changes nothing. The source never changes what the authorization allows. **Required permission:** `referential.authorization:write`
Put a coach under an authorization
Records which vehicle runs under the authorization from a date. Any coach in place is closed the day before — the register carries one vehicle per authorization number. Dated on the first day of the coach in place, it corrects a coach named by mistake instead: the coach in place is replaced and the new one covers from that same day, unless the station's rule refuses it. The correction requires a reason and is kept in the authorization's history with who and when. **Required permission:** `referential.authorization:write`