Skip to main content

Changes a user password

POST <your-unleash-url>/auth/reset/password

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Allows users with a valid reset token to reset their password without remembering their old password

Request

Body

required

changePasswordSchema

  • token string required

    A reset token used to validate that the user is allowed to change the password.

  • password string required

    The new password for the user

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
Body required
{
"token": "$2a$15$QzeW/y5/MEppCWVEkoX5euejobYOLSd4We21LQjjKlWH9l2I3wCke",
"password": "correct horse battery staple"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/auth/reset/password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"token": "$2a$15$QzeW/y5/MEppCWVEkoX5euejobYOLSd4We21LQjjKlWH9l2I3wCke",
"password": "correct horse battery staple"
}'