POST

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

This endpoint is currently available for TESLA

Permission

control_charge

Request

Path

idrequired
string

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

makerequired
string

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

Body

amperagerequired
number

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

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

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.

{
  "message": "Successfully sent the following amperage: 48",
  "status": "success"
}