Enable a user profile Added in 8.2.0

POST /_security/profile/{uid}/_enable

Enable user profiles to make them visible in user profile searches.

Path parameters

  • uid string Required

    Unique identifier for the user profile.

Query parameters

  • refresh string

    If 'true', Elasticsearch refreshes 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' do nothing with refreshes.

    Values are true, false, or wait_for.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

      For a successful response, this value is always true. On failure, an exception is returned instead.

POST /_security/profile/{uid}/_enable
curl \
 -X POST http://api.example.com/_security/profile/{uid}/_enable
Response examples (200)
{
  "acknowledged": true
}