Search + K

Command Palette

Search for a command to run...

Sign In

Change passwords

PUT /_security/user/_password
Copy endpoint

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

Parameters

query Query Parameters

Name Type
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.

type TypesRefresh = "true" | "false" | "wait_for"

Request Body

application/json required
{ password?: TypesPassword
type TypesPassword = string
;password_hash?: string; }

Responses

200 application/json
{}