Charge Schedule by Location
/v2.0/vehicles/{id}/{make}/charge/schedule_by_location
This endpoint is currently available for FORD
and LINCOLN
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.
Query
The longitude of a charging location from GET Charge Schedule by Location
The latitude of a charging location from GET Charge Schedule by Location
Body
Indicates whether the vehicle should immediately charge when plugged in at the location.
The maximum charge limit for the vehicle at the location as a percent between 0.5
and 1
).
The weekday and weekend charging schedules for the vehicle at the location.
The charging schedule for the vehicle on weekdays (Monday - Friday).
The exact hour a vehicle should start charging in HH:00 e.g. 17:00.
The exact hour a vehicle should stop charging in HH:00 e.g. 21:00.
The charging schedule for the vehicle on weekends (Saturday - Sunday).
The exact hour a vehicle should start charging in HH:00 e.g. 17:00.
The exact hour a vehicle should stop charging in HH:00 e.g. 21:00.
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule_by_location?longitude=2.3522&latitude=48.8566" \
-H "Authorization: Bearer {token}" \
-X "PUT" \
-H "Content-Type: application/json" \
-d '{"chargeOnPlugin": true, "chargeLimit": 0.9, "chargingSchedules": {"weekday": [{"start": "09:00", "end": "17:00"}], "weekend": [{"start": "09:00", "end": "17:00"}]}}'
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"
}
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule_by_location?longitude=2.3522&latitude=48.8566" \
-H "Authorization: Bearer {token}" \
-X "PUT" \
-H "Content-Type: application/json" \
-d '{"chargeOnPlugin": true, "chargeLimit": 0.9, "chargingSchedules": {"weekday": [{"start": "09:00", "end": "17:00"}], "weekend": [{"start": "09:00", "end": "17:00"}]}}'
{
"message": "Successfully sent request to vehicle",
"status": "success"
}