Skip to content

Update Vehicle

Update an existing vehicle in Last Mile Intelligence.

updateVehicle

vehicle

ParameterTypeRequiredDefaultDescription
Vehicle IDstringYes-The ID of the vehicle to update
Vehicle DataJSONYes-Fields to update
{
"id": "veh_truck001",
"name": "Truck 001 - Updated",
"capacity": 5500,
"status": "maintenance",
"updatedAt": "2024-06-21T10:30:00Z"
}
{
"success": false,
"error": "Vehicle not found",
"vehicleId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Vehicle Not Found: Vehicle with specified ID does not exist
  • Duplicate VIN: New VIN already exists on another vehicle
  • Permission Denied: API token lacks permission for this operation