POST
/
{vin}
/
command
/
add_charge_schedule
Add Charge Schedule
curl --request POST \
  --url https://api.tessie.com/{vin}/command/add_charge_schedule \
  --header 'Authorization: Bearer <token>'
{
  "result": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vin
string
required

The associated VIN.

Query Parameters

wait_for_completion
boolean
default:true

Whether to wait for the command to complete before returning a response.

days_of_week
string
required

A comma separated list of days this schedule should be enabled. Example: "Thursday,Saturday". Also supports "All" and "Weekdays".

enabled
boolean
required

If this schedule should be considered for execution.

start_enabled
boolean
default:false
required

If the vehicle should begin charging at the given start_time.

end_enabled
boolean
default:false
required

If the vehicle should stop charging after the given end_time.

one_time
boolean
default:false

If this is a one-time schedule.

id
integer

The ID of an existing schedule to modify. Omit if creating a new schedule.

start_time
integer

The number of minutes into the day this schedule begins. 1:05 AM is represented as 65. Omit if start_enabled set to false.

end_time
integer

The number of minutes into the day this schedule ends. 1:05 AM is represented as 65. Omit if end_enabled set to false.

lat
number
required

The approximate latitude the vehicle must be at to use this schedule.

lon
number
required

The approximate longitude the vehicle must be at to use this schedule.

Response

200 - application/json

Success

The response is of type object.