Skip to main content
PUT
/
api
/
v1
/
notification-policies
/
{id}
Update a notification policy
curl --request PUT \
  --url https://api.devhelm.io/api/v1/notification-policies/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "matchRules": [
    {
      "type": "<string>",
      "value": "<string>",
      "monitorIds": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "regions": [
        "<string>"
      ],
      "values": [
        "<string>"
      ]
    }
  ],
  "enabled": true,
  "priority": 123
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": 123,
    "name": "<string>",
    "matchRules": [
      {
        "type": "<string>",
        "value": "<string>",
        "monitorIds": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ],
        "regions": [
          "<string>"
        ],
        "values": [
          "<string>"
        ]
      }
    ],
    "escalation": {
      "steps": [
        {
          "channelIds": [
            "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          ],
          "delayMinutes": 1,
          "requireAck": true,
          "repeatIntervalSeconds": 2
        }
      ],
      "onResolve": "<string>",
      "onReopen": "<string>"
    },
    "enabled": true,
    "priority": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key (dh_live_...) or Auth0 JWT token

Path Parameters

id
string<uuid>
required

Body

application/json

Request body for updating a notification policy (null fields are preserved)

name
string

Human-readable name for this policy; null preserves current

Maximum string length: 255
matchRules
object[]

Match rules to evaluate (all must pass; omit or empty for catch-all)

escalation
object

Escalation chain defining which channels to notify; null preserves current

enabled
boolean

Whether this policy is enabled; null preserves current

priority
integer<int32>

Evaluation priority; higher value = evaluated first; null preserves current

Response

200 - */*

OK

data
object

Org-level notification policy with match rules and escalation chain