Update Vehicle
Update an existing vehicle in Last Mile Intelligence.
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 |
| Vehicle Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "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"}Error Handling
Section titled “Error Handling”- 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