Spaces method and path for this operation:
post /s/{space_id}/api/security/entity_store/update_api_key
Refer to Spaces for more information.
Replace the API key of every Entity Store background task with one owned by the user making this request, for example after the user who installed the Entity Store is removed. The tasks keep their schedules and state, and no entity data is changed. The user needs the same privileges as the install endpoint. Tasks that could not be updated are listed in failed; call the endpoint again to retry them.
[Required authorization] Route required privileges: securitySolution.
POST
/api/security/entity_store/update_api_key
curl
curl -X POST -H "kbn-xsrf: true" -H "Authorization: ApiKey ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{}' \
"${KIBANA_URL}/api/security/entity_store/update_api_key"
POST kbn://api/security/entity_store/update_api_key
{}
Request example
Re-grant the API key of every Entity Store task as the user making the request.
{}
Response examples (200)
Some tasks could not be updated
Call the endpoint again to retry the tasks listed in `failed`.
{
"failed": [
{
"id": "entity_store:v2:status_report_task:default",
"message": "Version conflict",
"statusCode": 409
}
],
"ok": false,
"updated": [
"entity_store:v2:history_snapshot_task:default"
]
}
Every Entity Store task now runs with an API key owned by the caller.
{
"failed": [],
"ok": true,
"updated": [
"entity_store:v2:history_snapshot_task:default",
"entity_store:v2:status_report_task:default"
]
}