xpack.security.changePasswordedit

client.xpack.security.changePassword({
  username: string,
  refresh: 'true' | 'false' | 'wait_for',
  body: object
})

Reference

username

string - The username of the user to change the password for

refresh

'true' | 'false' | 'wait_for' - 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.

body

object - the new password for the user