API referenceEndpoints
Get a vehicle
Returns a vehicle by id. **Required permission:** `referential.vehicle:read`
GET
/referential/v1/vehicles/{id}Returns a vehicle by id.
Required permission: referential.vehicle:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
*/*
curl -X GET "https://example.com/referential/v1/vehicles/string"{ "brand": "string", "capacity": 0, "carrier_id": "string", "created_at": "2019-08-24T14:15:22Z", "fleet_number": "string", "id": "string", "length_m": 0, "model": "string", "plate_number": "string", "replacement": true, "seating_mode": "string", "service_category": "string", "standing": "string", "status": "string", "suspension_reason": "string", "type": "string", "uhf_tag_missing": true, "updated_at": "2019-08-24T14:15:22Z"}Get a vehicle by plate
Returns a vehicle by registration plate. **Required permission:** `referential.vehicle:read`
Correct a vehicle
Corrects a vehicle's service category, fleet number, brand, model, capacity and seating mode. A field left out is kept; one sent as null is erased, except the capacity and the seating mode, which are never erased. **Required permission:** `referential.vehicle:write`