Skip to main content

Validate password for a user

POST <your-unleash-url>/api/admin/user-admin/validate-password

Authorization

name: Authorizationtype: apiKeyin: header

Validate the password strength. Minimum 10 characters, uppercase letter, number, special character.

Request

Body

required

passwordSchema

  • password string required

    The new password to change or validate.

  • oldPassword string

    The old password the user is changing. This field is for the non-admin users changing their own password.

  • confirmPassword string

    The confirmation of the new password. This field is for the non-admin users changing their own password.

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
Body required
{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/user-admin/validate-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'