---
title: "Dismiss an Attack Discovery generation"
method: POST
path: "/api/attack_discovery/generations/{execution_uuid}/_dismiss"
tags: ["Security Attack discovery API"]
---

# Dismiss an Attack Discovery generation

`POST /api/attack_discovery/generations/{execution_uuid}/_dismiss`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/attack_discovery/generations/{execution_uuid}/_dismiss</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Dismisses an Attack Discovery generation for the current user, indicating that its status should not be reported in the UI. This sets the generation's status to "dismissed" and affects how the generation appears in subsequent queries.

## Path parameters

- `execution_uuid` string, nonempty, required — A string that does not contain only whitespace characters.

## Response `200`

Indicates a successful call.

- object
  - `alerts_context_count` number — The number of alerts that were sent as context to the LLM for this generation.
  - `connector_id` string, required — The unique identifier of the connector used to generate the attack discoveries.
  - `connector_stats` object — Statistical information about the connector's performance for this user, providing insights into usage patterns and success rates.
    - `average_successful_duration_nanoseconds` number — The average duration in nanoseconds for successful generations using this connector by the current user.
    - `successful_generations` number — The total number of Attack discoveries successfully created for this generation
  - `discoveries` number, required — The number of attack discoveries that were generated during this execution.
  - `end` string — The timestamp when the generation process completed, in ISO 8601 format. This field may be absent for generations that haven't finished.
  - `execution_uuid` string, required — The unique identifier for this attack discovery generation execution. This UUID can be used to reference this specific generation in other API calls.
  - `loading_message` string — A human-readable message describing the current state or progress of the generation process. Provides context about what the AI is analyzing.
  - `reason` string — Additional context or reasoning provided when a generation fails or encounters issues. This field helps diagnose problems with the generation process.
  - `start` string, required — The timestamp when the generation process began, in ISO 8601 format. This marks the beginning of the AI analysis.
  - `status` 'canceled' | 'dismissed' | 'failed' | 'started' | 'succeeded', required — The current status of the attack discovery generation. After dismissing, this will be set to "dismissed".

## Other responses

- `400` — Bad Request response.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
