This endpoint is currently available for tesla
Permission
control_charge
Request
Path
The vehicle ID of the vehicle you are making a request to.
The make of the vehicle you are making a request to.
Body
The type of schedule you want to set.
When plugged in, the vehicle will delay starting a charging session until this time in HH:mm
.
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
.
Enables or disables the specified charging schedule.
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
The departure time configuration for the charging schedule.
Indicates whether this schedule type is enabled or disabled.
Only one of departureTime
or departureTime
can be enabled at a 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.
The start time configuration for the charging schedule.
Indicates whether this schedule type is enabled or disabled.
Only one of departureTime
or departureTime
can be enabled at a time.
When plugged in, the vehicle will delay starting a charging session until this time in HH:mm.
{
"departureTime": {
"enabled": false,
"time": null
},
"startTime": {
"enabled": true,
"time": "18:30"
}
}