Brivio API reference
Fleet

Update a fleet vehicle; absent fields are left unchanged. A changed plate or VIN re-links the registry vehicle. Honours Idempotency-Key. (scope: fleet:write)

PATCH
/fleet/vehicles/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key as Bearer token

Path Parameters

id*string

Fleet vehicle id

Formatuuid

Request Body

application/json
  1. body
plate?string

Normalised to upper case, single spaces.

Length2 <= length <= 20
vin?string
Lengthlength <= 17
make?string
Lengthlength <= 80
model?string
Lengthlength <= 80
year?integer
Range1950 <= value <= 2100
category?string

Default CAR on create.

Value in"CAR""VAN""TRUCK""TRAILER""BUS""MOTORCYCLE""OTHER"
fuel_type?string

Default DIESEL on create.

Value in"PETROL""DIESEL""ELECTRIC""HYBRID""LPG""CNG""OTHER"
status?string

Default ACTIVE on create.

Value in"ACTIVE""IN_SERVICE""INACTIVE""SOLD"
odometer_km?integer
Range0 <= value
itp_expires_at?string
Formatdate
rca_expires_at?string
Formatdate
casco_expires_at?string
Formatdate
rovinieta_expires_at?string
Formatdate
tahograf_expires_at?string
Formatdate
copie_conforma_expires_at?string
Formatdate
first_aid_kit_expires_at?string
Formatdate
extinguisher_expires_at?string
Formatdate
assigned_driver_id?string

A driver of this organization (422 otherwise).

Formatuuid
rca_provider?string
Lengthlength <= 120
casco_provider?string
Lengthlength <= 120
rca_policy_number?string
Lengthlength <= 60
casco_policy_number?string
Lengthlength <= 60
service_interval_km?integer
Range0 <= value
service_interval_months?integer
Range0 <= value
acquisition_date?string
Formatdate
acquisition_value?number
Range0 <= value
acquisition_currency?string

Default RON on create.

Length3 <= length <= 3
depreciation_months?integer
Range1 <= value
residual_value?number
Range0 <= value
leasing_company?string
Lengthlength <= 255
leasing_ends_at?string
Formatdate
notes?string
Lengthlength <= 4000

Response Body

OK

application/json
  1. response
data*
error*null
curl -X PATCH "https://example.com/fleet/vehicles/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "plate": "string",    "vin": "string",    "make": "string",    "model": "string",    "year": 0,    "category": "CAR",    "fuel_type": "PETROL",    "status": "ACTIVE",    "odometer_km": 0,    "itp_expires_at": "2019-08-24",    "rca_expires_at": "2019-08-24",    "casco_expires_at": "2019-08-24",    "rovinieta_expires_at": "2019-08-24",    "tahograf_expires_at": "2019-08-24",    "copie_conforma_expires_at": "2019-08-24",    "first_aid_kit_expires_at": "2019-08-24",    "extinguisher_expires_at": "2019-08-24",    "assigned_driver_id": "47d93e57-9eb7-4f87-a947-9f2c96fb3816",    "rca_provider": "string",    "casco_provider": "string",    "rca_policy_number": "string",    "casco_policy_number": "string",    "service_interval_km": 0,    "service_interval_months": 0,    "acquisition_date": "2019-08-24",    "acquisition_value": "string",    "acquisition_currency": "string",    "depreciation_months": 0,    "residual_value": "string",    "leasing_company": "string",    "leasing_ends_at": "2019-08-24",    "notes": "string",    "registry_vehicle_id": "c6077057-2cd3-46d3-b832-50e86a70ca9b",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "error": null}