Assign vehicle
POST
/loadpoints/{id}/vehicle/{name}
const url = 'https://demo.evcc.io/api/loadpoints/1/vehicle/vehicle_1';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/loadpoints/1/vehicle/vehicle_1Assigns vehicle to loadpoint.
Parameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β id
required
Loadpoint index starting at 1.
integer
Example
1Loadpoint index starting at 1
name
required
Responses
Section titled β Responses βSuccess
Media type application/json
object
result
object
vehicle
string
Example
{ "result": { "vehicle": "blauer e-Golf" }}