POST
/
vehicles
/
{id}
/
{make}
/
charge
/
ammeter
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/ammeter" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-H "Content-Type: application/json" \
-d '{"amperage": 48}'
{
  "message": "Successfully sent the following amperage: 48",
  "status": "success"
}

This endpoint is currently available for tesla

Permission

control_charge

Request

Path

id
string
required

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

make
string
required

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

Body

amperage
number
required

The target amperage to be drawn by the vehicle from the EVSE (in amperes).

Response

message
string

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

status
string

If the request is successful, Smartcar will return a message (HTTP 200 status) containing the amperage set to be drawn from the vehicle.