---
title: "Set attack discovery alerts workflow status"
method: POST
path: "/api/detection_engine/attacks/status"
tags: ["Security Detections API"]
---

# Set attack discovery alerts workflow status

`POST /api/detection_engine/attacks/status`

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

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/detection_engine/attacks/status</span></div>

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

Set the workflow status of one or more attack discovery alerts by IDs, optionally cascading the status to their related detection alerts.

## Request body

- union
  - SecurityDetectionsAPICloseAttacksByIds
    - `ids` string[], required — A list of alerts `id`s.
    - `reason` union — The reason for closing the alerts. Can be one of following predefined reasons: [false_positive, duplicate, true_positive, benign_positive, automated_closure, other] or a custom reason provided by the user through the advanced settings.
      - 'false_positive' | 'duplicate' | 'true_positive' | 'benign_positive' | 'automated_closure' | 'other'
      - string
    - `status` 'closed', required
    - `update_related_alerts` boolean — When `true`, the change is also applied to detection alerts related to the attacks via `kibana.alert.attack_discovery.alert_ids`.
  - SecurityDetectionsAPISetAttacksStatusByIdsBase
    - `ids` string[], required — A list of alerts `id`s.
    - `status` 'open' | 'acknowledged' | 'in-progress', required — The status of an alert, which can be `open`, `acknowledged`, `in-progress`, or `closed`.
    - `update_related_alerts` boolean — When `true`, the change is also applied to detection alerts related to the attacks via `kibana.alert.attack_discovery.alert_ids`.

## Response `200`

Successful response

- object — Elasticsearch update by query response

## Other responses

- `400` — Invalid input data response
- `401` — Unsuccessful authentication response
- `500` — Internal server error 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)
