---
title: "Validate a suppression rule"
method: POST
path: "/api/v2/security_monitoring/configuration/suppressions/validation"
tags: ["Security Monitoring"]
---

# Validate a suppression rule

`POST /api/v2/security_monitoring/configuration/suppressions/validation`

Validate a suppression rule.

## Request body

- SecurityMonitoringSuppressionCreateRequest — Request object that includes the suppression rule that you would like to create.
  - `data` SecurityMonitoringSuppressionCreateData, required — Object for a single suppression rule.
    - `attributes` SecurityMonitoringSuppressionCreateAttributes, required — Object containing the attributes of the suppression rule to be created.
      - `data_exclusion_query` string — An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule.
      - `description` string — A description for the suppression rule.
      - `enabled` boolean, required — Whether the suppression rule is enabled.
      - `expiration_date` integer — A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore.
      - `name` string, required — The name of the suppression rule.
      - `rule_query` string, required — The rule query of the suppression rule, with the same syntax as the search bar for detection rules.
      - `start_date` integer — A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals.
      - `suppression_query` string — The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered. It uses the same syntax as the queries to search signals in the Signals Explorer.
      - `tags` string[] — List of tags associated with the suppression rule.
    - `type` 'suppressions', required — The type of the resource. The value should always be `suppressions`.

## Response `204`

OK

## Other responses

- `400` — Bad Request
- `403` — Not Authorized
- `429` — Too many requests

---

[API](https://skmtc.dev/datadog/apis/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
