Spaces method and path for this operation:
delete /s/{space_id}/api/fleet/enrollment_api_keys/{keyId}
Refer to Spaces for more information.
Revoke an enrollment API key by ID by marking it as inactive.
[Required authorization] Route required privileges: fleet-agents-all.
DELETE
/api/fleet/enrollment_api_keys/{keyId}
curl \
--request DELETE 'https://<KIBANA_URL>/api/fleet/enrollment_api_keys/{keyId}' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
Response examples (200)
The enrollment API key was successfully revoked
{
"action": "deleted"
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}
Response examples (404)
No enrollment API key was found with the given ID
{
"error": "Not Found",
"message": "EnrollmentAPIKey key-id-1 not found",
"statusCode": 404
}