Clear the API key cache
Added in 7.10.0
Evict a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index.
Path parameters
-
ids
string | array[string] Required Comma-separated list of API key IDs to evict from the API key cache. To evict all API keys, use
*
. Does not support other wildcard patterns.
POST
/_security/api_key/{ids}/_clear_cache
curl \
--request POST 'http://api.example.com/_security/api_key/{ids}/_clear_cache' \
--header "Authorization: $API_KEY"