Nissan
Charge Schedule
Sets the charging schedule for a vehicle.
POST
/v2.0/vehicles/{id}/{make}/charge/schedule
This endpoint is currently available for NISSAN
EVs on the MyNissan
platform.
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
chargeSchedulesrequired
array
An array of charge schedules. A maximum of 3 schedules can be set.
startrequired
string
HH:mm in UTC for a schedule start time.
endrequired
string
HH:mm in UTC for a schedule start time.
daysrequired
[days]
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 "POST" \
-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
message
string
If the request is successful, Smartcar will return a message.
status
string
If the request is successful, Smartcar will return success
.
{
"message": "Successfully sent request to vehicle",
"status": "success"
}
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-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"]
}
]
}'
{
"message": "Successfully sent request to vehicle",
"status": "success"
}