Change passwords
PUT
/_security/user/{username}/_password Change the passwords of users in the native realm and built-in users.
Parameters
path Path Parameters
| Name | Type |
|---|---|
username
required
The user whose password you want to change. If you do not specify this parameter, the password is changed for the current user. | type TypesUsername = string |
query Query Parameters
| Name | Type |
|---|---|
refresh If | type TypesRefresh = "true" | "false" | "wait_for" |
Request Body
application/json
required
{ password?: TypesPassword ;password_hash?: string; }
Responses
200 application/json
{}