API referenceEndpoints
List a vehicle's permits
Returns a page of permits issued for this vehicle. **Required permission:** `referential.vehicle:read`
GET
/referential/v1/vehicles/{id}/permitsReturns a page of permits issued for this vehicle.
Required permission: referential.vehicle:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Query Parameters
active_only?boolean
page?integer
Format
int32size?integer
Format
int32Response Body
*/*
curl -X GET "https://example.com/referential/v1/vehicles/string/permits"{ "data": [ { "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "id": "string", "number": "string", "revoke_reason": "string", "revoked_at": "2019-08-24T14:15:22Z", "revoked_by": "string", "source": "string", "valid_from": "2019-08-24", "valid_until": "2019-08-24", "vehicle_id": "string" } ], "page": 0, "size": 0, "total": 0}State a coach's length
States the coach's overall length in metres, which bays it fits on; an omitted length is cleared. **Required permission:** `referential.vehicle:write`
Issue a permit
Issues a permit (agrément) for a vehicle with a non-overlapping validity window. **Required permission:** `referential.vehicle:write`