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.
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

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"
}