DispatchOne Solution
...
Vehicle API
Vehicle Attributes
Creating Vehicles
1min
for creating a vehicle, call the creating vehicles endpoint and specify the following parameters in the request body member description remarks modelname name of the vehicle to be created data type string ownername the id of the vehicle owner data type string referencenumber unique id of the vehicle data type string vehiclecategory category of the vehicle data type string vehiclesubcategory subcategory of the vehicle data type string ownershiptype the owner of the vehicle among self/seller/partner data type string registrationnumber the registration number of the vehicle as in the records data type string the following example request body shows how to create and update a vehicle named semi truck create vehicle { "modelname" "semi truck", "ownername" "users 1234 5467 4456", "referencenumber" "63419231", "operator" "user\ b03369f6 9d60 4f6e bc06 2dd2e74d9ea1", "vehiclecategory" "truck", "vehiclesubcategory" "bike", "ownershiptype" "tenant", "vehiclemode" "land", "fueltype" "petrol", "registrationnumber" "1abc234", "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" ] } update vehicle { "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" ] }