Change passwords
Change the passwords of users in the native realm and built-in users.
Query parameters
-
If
true
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.Values are
true
,false
, orwait_for
.
PUT
/_security/user/_password
Console
POST /_security/user/jacknich/_password
{
"password" : "new-test-password"
}
curl \
--request PUT 'http://api.example.com/_security/user/_password' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"password\" : \"new-test-password\"\n}"'
Request example
Run `POST /_security/user/jacknich/_password` to update the password for the `jacknich` user.
{
"password" : "new-test-password"
}