v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Security Monitoring

Create a mute rule

Create a new mute rule for the current organization.

post/api/v2/security/findings/automation/mute_rules

Request body

Example request

{
  "data": {
    "attributes": {
      "action": {
        "expire_at": 4070908800000,
        "reason": "risk_accepted",
        "reason_description": "Accepted for dev environments only"
      },
      "enabled": true,
      "name": "Mute accepted risks in dev",
      "rule": {
        "finding_types": [
          "misconfiguration"
        ],
        "query": "env:prod team:platform"
      }
    },
    "type": "mute_rules"
  }
}

Response

Successfully created the mute rule

Example response

{
  "data": {
    "attributes": {
      "action": {
        "expire_at": 4070908800000,
        "reason": "risk_accepted",
        "reason_description": "Accepted for dev environments only"
      },
      "created_at": 1722439510282,
      "created_by": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "Jane Doe",
        "type": "user"
      },
      "enabled": true,
      "modified_at": 1722439510282,
      "modified_by": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "Jane Doe",
        "type": "user"
      },
      "name": "Mute accepted risks in dev",
      "rule": {
        "finding_types": [
          "misconfiguration"
        ],
        "query": "env:prod team:platform"
      }
    },
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "mute_rules"
  }
}