This endpoint is currently available for nissan
EVs on the MyNISSAN
platform
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
An array of charge schedules. A maximum of 3 schedules can be set.
HH:mm in UTC for a schedule start time.
HH:mm in UTC for a schedule start time.
An array of days for the schedule to be applied.
Options: MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule" \
-H "Authorization: Bearer {token}" \
-X "PUT" \
-H "Content-Type: application/json" \
-d '{
"chargeSchedules": [
{
"start": "08:00",
"end": "12:00",
"days": ["MONDAY", "WEDNESDAY", "FRIDAY"]
},
{
"start": "14:00",
"end": "18:00",
"days": ["TUESDAY", "THURSDAY", "SATURDAY"]
}
]
}'
Response
If the request is successful, Smartcar will return a message.
If the request is successful, Smartcar will return success
.
{
"message": "Successfully sent request to vehicle",
"status": "success"
}