Skip to main content
PUT
/
v1
/
alerts
/
rules
Update alert rules
curl --request PUT \
  --url https://api.intrace.ai/v1/alerts/rules \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "rules": [
    {
      "id": "<string>",
      "enabled": true,
      "title": "<string>",
      "severity_threshold": [
        "critical"
      ],
      "mute_interval_hours": 123,
      "email_enabled": true,
      "sms_enabled": true,
      "slack_enabled": true,
      "user_receiver_type": "none",
      "external_receivers": [
        {
          "email": "<string>",
          "phone": "<string>"
        }
      ],
      "asset_ids": [
        "<string>"
      ],
      "threat_types": [
        "<string>"
      ],
      "max_distance_km": 123,
      "created_at": "<string>"
    }
  ]
}
'
{
  "rules": [
    {
      "id": "<string>",
      "enabled": true,
      "title": "<string>",
      "severity_threshold": [
        "critical"
      ],
      "mute_interval_hours": 123,
      "email_enabled": true,
      "sms_enabled": true,
      "slack_enabled": true,
      "user_receiver_type": "none",
      "external_receivers": [
        {
          "email": "<string>",
          "phone": "<string>"
        }
      ],
      "asset_ids": [
        "<string>"
      ],
      "threat_types": [
        "<string>"
      ],
      "max_distance_km": 123,
      "created_at": "<string>"
    }
  ]
}
Saves the full set of alert rules.

Example Request

{
  "rules": [
    {
      "id": "physical-critical-all",
      "enabled": true,
      "title": "Critical threats across all assets",
      "severity_threshold": ["critical", "high"],
      "asset_ids": null,
      "threat_types": null,
      "max_distance_km": null,
      "mute_interval_hours": 1,
      "email_enabled": true,
      "sms_enabled": false,
      "slack_enabled": true,
      "user_receiver_type": "all",
      "external_receivers": []
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Body

application/json
rules
object[]
required

Response

200 - application/json

Updated rules.

rules
object[]
required