POST

/v2.0/vehicles/{id}/charge

Permission

control_charge

Request

Path

idrequired
string

The vehicle id of the vehicle you are making a request to.

Body

actionrequired
string

START or STOP the vehicle charging.

curl "https://api.smartcar.com/v2.0/vehicles/{id}/charge" \
    -H "Authorization: Bearer {token}" \
    -X "POST" \
    -H "Content-Type: application/json" \
    -d '{"action": "START"}'

Response

status
string

If the request is successful, Smartcar will return “success”.

message
string

If the request is successful, Smartcar will return a message.

    {
        "message": "Successfully sent request to vehicle",
        "status": "success"
    }