POST

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

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

typerequired
string

The type of schedule you want to set.

START_TIME

When plugged in, the vehicle will delay starting a charging session until this time in HH:mm

DEPARTURE_TIME

When plugged in, the vehicle may delay starting a charging session as long as it can reach its charge limit by this time in HH:mm.

enabledrequired
boolean

Enables or disables the specified charging schedule.

timerequired
string

The time for the provided schedule type in HH:mm

curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-H "Content-Type: application/json" \
-d '{"type": "START_TIME", "enable": true, "time": "23:30"}'

Response

departureTime
object

The departure time configuration for the charging schedule.

startTime
object

The start time configuration for the charging schedule.

{
  "departureTime": {
    "enabled": false,
    "time": null
  },
  "startTime": {
    "enabled": true,
    "time": "18:30"
  }
}