- Update route planner preferences
Update the user's EV Route Planner preferences.
The body is treated as a partial map: only the keys you include are modified, omitted keys are left untouched. PATCH {} is a valid no-op. preferred_vehicle accepts a vehicle URL or null; min_charger_power_watts accepts one of 22000, 50000, 100000, 150000, 250000 or null. distance_unit accepts AUTO, MILES or KILOMETRES, and temperature_unit accepts AUTO, CELSIUS or FAHRENHEIT; neither can be set back to null.
Unit used to display distances. Cannot be set to null.
Unit used to display temperatures. Cannot be set to null.
Driving minutes between breaks; 0 for no breaks. Cannot be set to null.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/users/{user_id}/route_planner_preferences
- Live API for both production and sandbox requests.https://api.ev.energy/v2/users/{user_id}/route_planner_preferences
- Staging server for internal testing only.https://api-staging.ev.energy/v2/users/{user_id}/route_planner_preferences
curl -i -X PATCH \
'https://developers.ev.energy/_mock/ev.energy-api-v2/users/{user_id}/route_planner_preferences' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'EvEnergy-Version: 2' \
-d '{
"preferred_vehicle": "http://example.com",
"min_charger_power_watts": 22000,
"arrive_with_min_percent": 0,
"distance_unit": "AUTO",
"temperature_unit": "AUTO",
"battery_display": "PERCENT",
"break_every_minutes": 0,
"break_minutes": 5,
"network_preferences": {
"property1": "PREFER",
"property2": "PREFER"
}
}'Route planner preferences updated successfully.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
Link to the vehicle selected by default, or null if none is set.
Soft minimum charger power (watts) for en-route charger search. Null means all chargers.
Default arrival battery floor seeded into new route plans.
Unit used to display distances. AUTO means the user chose to derive the unit from their locale; null means the user has never set it.
Unit used to display temperatures. AUTO means the user chose to derive the unit from their locale; null means the user has never set it.
Whether battery figures read as a percentage or as distance left. null means the user has never set it.
Driving minutes between breaks. 0 means no breaks; null means the user has never set it.
Length of each break, in minutes. null means the user has never set it.
Charging networks the user prefers or avoids, by the network's name. A network not listed is neutral. null means the user has never set it.
{ "IONNA": "PREFER", "EVgo": "AVOID" }
{ "url": "https://api.ev.energy/v2/users/user01HN2NJ9NMRZBXT1H6FT9N7735/route_planner_preferences", "preferred_vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "min_charger_power_watts": 22000, "arrive_with_min_percent": 0, "distance_unit": "MILES", "temperature_unit": "AUTO", "battery_display": "PERCENT", "break_every_minutes": 120, "break_minutes": 20, "network_preferences": { "IONNA": "PREFER", "EVgo": "AVOID" }, "updated_at": "2019-08-24T14:15:22Z" }