How to: Update a Vehicle
For information about prerequisites, see Creating Vehicle.
To update information associated with a Vehicle, call the Update Vehicle endpoint. Use the Vehicle ID in the {vehicleId
} path parameter and pass a request body similar to the following:
{
"operator": "user:b03369f6-9d60-4f6e-bc06-2dd2e74d9ea1",
"ownershipType": "Tenant",
"vehicleMode": "Land",
"fuelType": "Petrol",
"registrationNumber": "MH 01 AA 1234",
"registrationYear": 2020,
"vehicleStructure": "Single-unit",
"modelYear": 2022,
"reportingCenter": "oofacilities:4d6e7125-aaa3-4ea1-9fd4-44c4f1cad179",
"numberOfJobs": 10,
"totalDistance": 34,
"totalTravelTime": 4,
"totalLateTime": 1,
"payload": 100,
"payloadVolumetric": 15,
"costPerMonth": 1000,
"numberOfDays": 19,
"ratePerHr": 16,
"ratePerKm": 13,
"fuelTankCapacity": 12,
"batteryCapacity": 5,
"vehicleType": "4-wheeler",
"containerDimensions": "15*20*17",
"teams": [
"teams:2452-2253-2223-3332",
"teams:5437-2273-8972-3345"
]
}
Updated 5 days ago