DispatchOne Solution
...
Vehicle API
Integrate with Vehicles
How to: Change State of a Vehicle
1 min
for information about prerequisites, see integrate with vehicles docid 1zd2b0 aw7im7cxci8lei to change the state of a vehicle, call the update state of vehicle by id or external ref docid\ iqthfvhrkazvj4412ax73 endpoint and pass the following parameters in the request body member description tostate one of the valid state codes onboarding, active, deboarding, or inactive reasoncode (optional) a valid reason code associated with the event eventcode (optional) event code of the transition event request bodies are specified in json format the following example request body shows how to change the state of the vehicle { "eventcode" "e 456", "reasoncode" "r 123", "tostate" "active\ available" }