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 charging point (in amperes). If the value passed is greater than what is supported by the charger, it will be set to the maximum.
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}'

Response

message
string
If the request is successful, Smartcar will return “success” (HTTP 200 status). If the amperage passed was greater than what is supported by the charger, it will be set to the maximum which will be shown here.
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"
}