---
title: "Mitigate detections"
method: POST
path: "/api/v2/governance/detections/mitigate"
tags: ["Governance Console"]
---

# Mitigate detections

`POST /api/v2/governance/detections/mitigate`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/governance/detections/mitigate`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/governance/detections/mitigate/post.ts> (a function with typed inputs; its response is checked against the schema)

Apply a mitigation to a set of governance detections of a given detection type. When the
mitigation type is omitted, the control's configured mitigation is used. The request is
accepted for asynchronous processing.

## Request body

- GovernanceMitigationRequest: A request to mitigate a set of governance detections.
  - `data` GovernanceMitigationRequestData, required: The data of a governance mitigation request.
    - `attributes` GovernanceMitigationRequestAttributes: The attributes of a governance mitigation request.
      - `detection_ids` string[], required: The identifiers of the detections to mitigate in this request.
      - `detection_type` string, required: The detection type whose detections should be mitigated.
      - `mitigation_parameters` GovernanceControlParametersMap: A free-form map of parameter names to their configured values.
      - `mitigation_type` string: The mitigation to apply to the selected detections. Defaults to the control's configured mitigation when omitted.
    - `type` 'governance_control_detection', required: Governance control detection resource type.

## Response `202`

Accepted

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
