Set a SoC-based charging plan
POST
/vehicles/{name}/plan/soc/{soc}/{timestamp}
const url = 'https://demo.evcc.io/api/vehicles/vehicle_1/plan/soc/60/2025-07-19T12%3A30%3A00.000Z';const options = {method: 'POST'};
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/soc/60/2025-07-19T12%3A30%3A00.000ZCreate charging plan with fixed time and SoC target.
Parameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β name
required
soc
required
SOC in %
number
Example
60SOC in %
timestamp
required
Timestamp in RFC3339 format
string format: date-time
Example
2025-07-19T12:30:00.000ZTimestamp in RFC3339 format
Responses
Section titled β Responses βSuccess
Media type application/json
object
result
object
soc
SOC in %
number
time
Timestamp in RFC3339 format
string format: date-time
Example
{ "result": { "soc": 60, "time": "2025-07-19T12:30:00.000Z" }}