PUT
/
vehicles
/
{id}
/
{make}
/
charge
/
schedule
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"]
        }
    ]
}'
{
  "message": "Successfully sent request to vehicle",
  "status": "success"
}

This endpoint is currently available for nissan EVs on the MyNISSAN platform

Permission

control_charge

Request

Path

id
string
required

The vehicle ID of the vehicle you are making a request to.

make
string
required

The make of the vehicle you are making a request to.

Body

chargeSchedules
array
required

An array of charge schedules. A maximum of 3 schedules can be set.

start
string
required

HH:mm in UTC for a schedule start time.

end
string
required

HH:mm in UTC for a schedule start time.

days
[days]
required

An array of days for the schedule to be applied. Options: MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY

Response

message
string

If the request is successful, Smartcar will return a message.

status
string

If the request is successful, Smartcar will return success.