Cancel agent action

POST /api/fleet/agents/actions/{actionId}/cancel

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/agents/actions/{actionId}/cancel

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

  • actionId string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • item object

      One of:
  • 400 application/json

    Generic Error

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