Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Path Parameters

alert_id
string<uuid>
required

alert id path parameter

Body

application/json

POST adds these destinations to the ones already stored on the Alert Rule; PATCH replaces each channel it includes. Either way the stored total per channel may not exceed its maximum, or the request is rejected with 400. The maximums default to 50 emails, 20 PagerDuty services and 20 webhooks per Alert Rule and are configurable per deployment via ALERT_NOTIFICATION_MAX_EMAILS, ALERT_NOTIFICATION_MAX_PAGERDUTY_SERVICES and ALERT_NOTIFICATION_MAX_WEBHOOKS, so they are documented here rather than enforced by the schema. Each PagerDuty service name may be at most 64 characters; a longer name is rejected with 400.

emails
string[]
pagerduty_services
string[] | null

Names of PagerDuty services owned by the Alert Rule's organization; any other name is rejected with 400. null means no PagerDuty services: PATCH clears the channel and POST adds none. Omitting the field leaves the stored services unchanged.

Maximum string length: 64
pagerduty_severity
string
webhooks
string<uuid>[]

Response

successful completion

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object