Skip to content

Update Vehicle

Update an existing vehicle record in Samsara by its ID.

updateVehicle

vehicle

ParameterTypeRequiredDefaultDescription
Vehicle IDstringYes-The ID of the vehicle to update
FieldTypeDescription
NamestringThe name of the vehicle
VINstringThe Vehicle Identification Number
License PlatestringThe license plate of the vehicle
MakestringThe make of the vehicle
ModelstringThe model of the vehicle
YearstringThe year of the vehicle
NotesstringNotes about the vehicle
External IDs (JSON)jsonExternal IDs as a JSON object

Returns the updated vehicle record:

{
"id": "281474976710655",
"name": "Truck 001 - Updated",
"vin": "1HGBH41JXMN109186",
"licensePlate": "ABC-1234",
"make": "Ford",
"model": "F-150",
"year": "2022",
"notes": "Updated notes",
"externalIds": {
"fleetSystem": "VEH001"
}
}
{
"success": false,
"error": "Vehicle not found",
"vehicleId": "invalid_id"
}
  • Missing API Token: Samsara credential is missing apiToken
  • Vehicle Not Found: Vehicle with specified ID does not exist
  • Validation Error: Invalid field values provided