Update repeating plans
POST
/vehicles/{name}/plan/repeating
const url = 'https://demo.evcc.io/api/vehicles/vehicle_1/plan/repeating';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '[{"active":true,"soc":60,"time":"12:30","tz":"Europe/Berlin","weekdays":[1,3,4]}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://demo.evcc.io/api/vehicles/vehicle_1/plan/repeating \ --header 'Content-Type: application/json' \ --data '[ { "active": true, "soc": 60, "time": "12:30", "tz": "Europe/Berlin", "weekdays": [ 1, 3, 4 ] } ]'Updates the repeating charging plan.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” name
required
Request Body required
Section titled “Request Body required ” Media type application/json
Array<object>
object
active
Set plan active.
boolean
soc
SOC in %
number
Example
60 time
Time in HH:MM format
string format: HH:MM
Example
12:30 tz
weekdays
The Weekdays
Array<integer>
Example
[ 1, 3, 4]Responses
Section titled “ Responses ”Success
Media type application/json
object
result
Array<object>
object
active
Set plan active.
boolean
soc
SOC in %
number
time
Time in HH:MM format
string format: HH:MM
tz
weekdays
The Weekdays
Array<integer>
Example
{ "result": [ { "soc": 60, "time": "12:30", "tz": "Europe/Berlin", "weekdays": [ 1, 3, 4 ] } ]}