Changes the password and closes every session
POST
/auth/passwordRequires: Cookie fret_session / Bearer
Request body
application/jsonobjectrequired
currentstringrequirednextstringrequired
Responses
204Password changed
400Errorobject
errorobjectFields · 2
codestringmessagestring
401Errorobject
errorobjectFields · 2
codestringmessagestring
Request
curl -X POST "http://localhost:8080/api/v1/auth/password" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "current": "string", "next": "string"}'const response = await fetch('http://localhost:8080/api/v1/auth/password', { method: 'POST', headers: { Authorization: 'Bearer <TOKEN>', 'Content-Type': 'application/json', }, body: JSON.stringify({ "current": "string", "next": "string" }),});console.log(response.status);import requests
response = requests.post( "http://localhost:8080/api/v1/auth/password", headers={ "Authorization": "Bearer <TOKEN>", }, json={ "current": "string", "next": "string", },)response.raise_for_status()print(response.status_code)Response
{ "error": { "code": "not_found", "message": "string" }}{ "error": { "code": "not_found", "message": "string" }}