SmartGare
API referenceEndpoints

Change a FIXE transport authorization's access window

Re-sizes the window, in minutes before H, from which the coach may leave the buffer zone for its bay, keeping the previous value in the history with who, when and why. The same value again changes nothing. **Required permission:** `referential.authorization:write`

PUT/referential/v1/authorizations/{id}/access-window

Re-sizes the window, in minutes before H, from which the coach may leave the buffer zone for its bay, keeping the previous value in the history with who, when and why. The same value again changes nothing.

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*ChangeTransportAuthorizationAccessWindowRequest

Response Body

*/*

*/*

curl -X PUT "https://example.com/referential/v1/authorizations/string/access-window" \  -H "Content-Type: application/json" \  -d '{    "access_window_minutes": 0,    "reason": "string"  }'
{  "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"}