DispatchOne Solution
...
Vehicle Attributes
Creating Vehicles
1 min
for creating a vehicle, call the https //docs getos1 com/reference/create a vehicle endpoint and specify the following parameters in the request body true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type 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" ] }