Skip to main content
PATCH
/
v1
/
alert-rules
/
{rule_id}
Patch Alert Rule
curl --request PATCH \
  --url https://api.example.com/v1/alert-rules/{rule_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scope": "<string>",
  "channels": [
    "<string>"
  ],
  "enabled": true,
  "snoozed_until": "<string>",
  "threshold": {
    "probability": 0.5,
    "window_days": 123
  }
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

rule_id
string
required

Body

application/json
name
string | null
scope
string | null
channels
string[] | null
enabled
boolean | null
snoozed_until
string | null
threshold
AlertThreshold · object

Response

Successful Response

The response is of type Response Patch Alert Rule V1 Alert Rules Rule Id Patch · object.