Change your own password
POST <your-unleash-url>/api/admin/user/change-password
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Requires specifying old password and confirming new password
Request
- application/json
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
- 200
- 400
- 401
This response has no body.
Old and new password do not match
Old password is incorrect or user is not authenticated
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
python / requests
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
go / native
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
nodejs / axios
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
ruby / Net::HTTP
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
csharp / RestSharp
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
php / cURL
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
java / OkHttp
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'
powershell / RestMethod
curl -L -X POST '<your-unleash-url>/api/admin/user/change-password' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "k!5As3HquUrQ",
"oldPassword": "Oldk!5As3HquUrQ",
"confirmPassword": "k!5As3HquUrQ"
}'