Change admin password
PUT
/auth/password
const url = 'https://demo.evcc.io/api/auth/password';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"current":"example","new":"example"}'};
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/auth/password \ --header 'Content-Type: application/json' \ --data '{ "current": "example", "new": "example" }'Changes the admin password.
Request Body required
Section titled “Request Body required ” Media type application/json
object
current
Admin password
string
new
Admin password
string
Example generated
{ "current": "example", "new": "example"}Responses
Section titled “ Responses ”Success
Invalid password provided