Path parameters

  • uidstring Required

    A unique identifier for the user profile.

Query parameters

  • refreshstring

    If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. If 'wait_for', it waits for a refresh to make this operation visible to search. If 'false', nothing is done with refreshes.

    Values are true, false, or wait_for.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledgedboolean Required

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

POST /_security/profile/{uid}/_enable
curl \
 --request POST 'http://api.example.com/_security/profile/{uid}/_enable' \
 --header "Authorization: $API_KEY"