POST /vehicles/{vehicleId}/charging
Request for a vehicle to start or stop charging. This request creates an Action that will retry until the vehicle's powerDeliveryState
matches the expected value. The Action must complete before any further commands are sent to the vehicle. If a PENDING
action for the same target and type already exists, it will be reused and a new action will not be created. If the new Action has a different target or type, the existing Action will be automatically transitioned to the CANCELLED
state and a new Action will be created. Transitions can be tracked via the user:vendor-action:updated
webhook event or Get Vehicle Action.
This endpoint returns an error with status code 422 if the vehicle is controlled by a schedule or has an active smart charging plan. To restore user control, either disable the schedule, disable smart charging, or use Create Smart Override to temporarily enable charging.
Servers
- https://enode-api.production.enode.io
Path parameters
Name | Type | Required | Description |
---|---|---|---|
vehicleId |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
action |
Object | Yes |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.