v1
latestOpenAPI 3.1.02026-07-2617501.1 MBUpdate a vehicle
put/v1/vehicles/{id}
Path parameters
idstring required
Specify the ID of the vehicle for which you want to make an update.
Headers
X-Time-Zonestring
Specify the timezone for formatting the timestamps.
X-Metric-Unitsboolean
Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units
X-User-Idinteger
Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.
Request body
Response
200
Example response
{
"vehicle": {
"id": 4565,
"company_id": 8990,
"number": "301",
"status": "active",
"ifta": true,
"vin": "WP0AB2966NS458669",
"make": "Demo",
"model": "Vehicle",
"year": "2016",
"license_plate_state": "CA",
"license_plate_number": "5M37250",
"fuel_type": "diesel",
"group_ids": [
74153
],
"created_at": "2019-01-19T20:48:57Z",
"updated_at": "2019-01-19T21:23:44Z",
"eld_device": {
"id": 4144,
"identifier": "99999999",
"model": "lbb-1"
},
"current_driver": {
"id": 294979,
"first_name": "John",
"last_name": "Connor",
"username": "demo_driver_1_kt3647454",
"status": "active",
"role": "driver"
},
"availability_details": {
"availability_status": "out_of_service",
"out_of_service_reason": "Vehicle Maintenance",
"updated_at": "2024-07-31T05:30:53Z",
"additional_note": "This vehicle is scheduled for maintenance",
"custom_driver_app_warning_prompt": "This vehicle is scheduled for maintenance, please don't operate",
"updated_by_user": {
"id": 123,
"first_name": "First",
"last_name": "Last",
"user_name": "demo_dispatcher",
"email": "demo.dispatcher@gmail.com",
"company_reference_id": 1234,
"status": "active",
"role": "dispatcher"
}
}
}
}