POST
/
api
/
auth
/
change-password
curl --request POST \
  --url http://localhost/api/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form setCookie=true \
  --form 'oldPassword=<string>' \
  --form 'newPassword=<string>' \
  --form logoutAllDevices=true
{
  "success": true,
  "loggedOutDevicesCount": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

oldPassword
string
required
newPassword
string
required
logoutAllDevices
boolean

Response

200
*/*
Password successfully changed
success
boolean
loggedOutDevicesCount
integer