SmartGare
API referenceEndpoints

Put a line under an authorization

Records that the authorization covers the line from a date. Several authorizations may cover one line at once — that is what a rotation is.

POST/referential/v1/authorizations/authorized-lines

Records that the authorization covers the line from a date. Several authorizations may cover one line at once — that is what a rotation is.

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

*/*

*/*

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