Update Vehicle
Update an existing vehicle record in Samsara by its ID.
Operation
Section titled “Operation”updateVehicle
Resource
Section titled “Resource”vehicle
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Vehicle ID | string | Yes | - | The ID of the vehicle to update |
Update Fields
Section titled “Update Fields”| Field | Type | Description |
|---|---|---|
| Name | string | The name of the vehicle |
| VIN | string | The Vehicle Identification Number |
| License Plate | string | The license plate of the vehicle |
| Make | string | The make of the vehicle |
| Model | string | The model of the vehicle |
| Year | string | The year of the vehicle |
| Notes | string | Notes about the vehicle |
| External IDs (JSON) | json | External IDs as a JSON object |
Response
Section titled “Response”Success
Section titled “Success”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"}Error Handling
Section titled “Error Handling”- Missing API Token: Samsara credential is missing apiToken
- Vehicle Not Found: Vehicle with specified ID does not exist
- Validation Error: Invalid field values provided