Update vehicle of charging session
PUT
/session/{id}
const url = 'https://demo.evcc.io/api/session/1';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"vehicle":"vehicle_1","loadpoint":"Garage"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://demo.evcc.io/api/session/1 \ --header 'Content-Type: application/json' \ --data '{ "vehicle": "vehicle_1", "loadpoint": "Garage" }'Update vehicle of charging session.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
Loadpoint index starting at 1.
integer
Example
1Loadpoint index starting at 1
Request Body required
Section titled “Request Body required ” Media type application/json
object
vehicle
loadpoint
Responses
Section titled “ Responses ”Success