Change passwords

  • POST also PUT /_security/user/{username}/_password
  • POST also PUT /_security/user/_password

Change the passwords of users in the native realm and built-in users.

Path Parameters

username string optional

The user whose password you want to change. If you do not specify this parameter, the password is changed for the current user.

Leave it out to use /_security/user/_password.

Query Parameters

refresh enum Refresh

If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes.

Values: true false wait_for

Response