POST

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

Permission

control_charge

Request

Path

idrequired
string

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

Body

limitrequired
number

The level at which the vehicle should stop charging and be considered fully charged. Cannot be less than 0.5, or greater than 1.

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

Response

status
string

If the request is successful, Smartcar will return “success” (HTTP 200 status).

message
string

If the request is successful, Smartcar will return a message (HTTP 200 status).

Notes

This endpoint will return a CHARGING_PLUG_NOT_CONNECTED error if the OEM is unable to set a charge limit unless the vehicle is plugged in.

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