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

This endpoint is currently available for tesla

Permission

control_climate

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

action
string
required

Indicate whether to start or stop the cabin climate control system, or set the temperature. If starting or stopping the system, temperature is optional and will use the vehicle’s current setting by default.

temperature
string

Indicate what temperature to set (in Celsius by default or in Fahrenheit using the sc-unit-system). If the provided temperature is out of the bounds allowed by the vehicle’s climate control system, the request will fail with the upper and lower limits in the error response message.

Response

status
string

If the request is successful, Smartcar will return "success" (HTTP 200 status) containing the current state of the climate cabin system.

temperature
number

The target temperature setting of the vehicle when the climate system is on (in Celsius by default or in Fahrenheit using the sc-unit-system).