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

Authorizations

Authorization
string
header
required

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

Body

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

Response

Successful Response

The response is of type Response Create Alert Rule V1 Alert Rules Post · object.