SmartGare
API referenceEndpoints

Put a line under an authorization

Records that the authorization covers the line from a date, with the reference times H it carries on that line: required for FIXE, COORDINATION and PASSAGER, refused for ARRIVEE, each naming one of the line's itinerary codes. Several authorizations may cover one line at once — that is what a rotation is. **Required permission:** `referential.authorization:write`

POST/referential/v1/authorizations/{id}/lines

Records that the authorization covers the line from a date, with the reference times H it carries on that line: required for FIXE, COORDINATION and PASSAGER, refused for ARRIVEE, each naming one of the line's itinerary codes. Several authorizations may cover one line at once — that is what a rotation is.

Required permission: referential.authorization:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*AuthorizeLineRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/authorizations/string/lines" \  -H "Content-Type: application/json" \  -d '{    "effective_from": "2019-08-24",    "line_id": "string"  }'
{  "id": "string"}