Revoke enrollment API key by ID by marking it as inactive

DELETE /api/fleet/enrollment_api_keys/{keyId}

Spaces method and path for this operation:

delete /s/{space_id}/api/fleet/enrollment_api_keys/{keyId}

Refer to Spaces for more information.

Headers

  • kbn-xsrf string Required

    Kibana's anti Cross-Site Request Forgery token. Can be any string value.

Path parameters

  • keyId string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • action string Required

      Value is deleted.

  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
DELETE /api/fleet/enrollment_api_keys/{keyId}
curl \
 --request DELETE 'https://localhost:5601/api/fleet/enrollment_api_keys/{keyId}' \
 --header "Authorization: $API_KEY" \
 --header "kbn-xsrf: string"