Transition the state of a particular vehicle with its vehicle id and transition event

Query ParameterDescriptionType
vehicleId*Participant ID of the vehicle to get (given when vehicle is created)string

Events Table
| Initial State | Event Code | Final State |
|--- |--- |--- |
|On Boarding | {{Dynamic}} | Active: Available |
|Active : Available | {{Dynamic}} | Active: In-use |
|Active : Available | {{Dynamic}} | Active: Unavailable |
|Active: In-use | {{Dynamic}} | Active: Available |
| Active: Unavailable | {{Dynamic}} | Active: Available |
|Active:Unavailable | {{Dynamic}} | Inactive: Inactive |
|Inactive:Inactive | - | - |

Request Body (Data associated with participant generated during event can be stored)
| Parameter | Description | Type | Validation |
|--- |--- |--- | --- |
| eventCode | Event Code of the transition event | string | Valid event code for given state |
| reasonCode | Reason code for transition | string | If provided should be valid reason code associated with event |
| toState* | Any state associated w.r.t event transition | object | |

Language
Authentication
Cookie
URL
Click Try It! to start a request and see the response here!