POST /chargers/{chargerId}/charging
Request for a charger to start or stop charging. This request creates an Action that will retry until the charger's powerDeliveryState
matches the expected value. The Action must complete before any further commands are sent to the charger. Only one Action can be active for a specific charger at a time. If a new Action is created, the previous Action will be automatically cancelled and transitioned to the CANCELLED
state. Transitions can be tracked via the user:vendor-action:updated
webhook event or Get Charger Action.
This endpoint returns an error with status code 422 if the charger is controlled by a schedule. To restore user control, either disable the schedule or use Create Smart Override to temporarily enable charging.
Servers
- https://enode-api.production.enode.io
Path parameters
Name | Type | Required | Description |
---|---|---|---|
chargerId |
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.