Skip to main content
POST
Create an alert route

Authorizations

Authorization
string
header
required

An sre_ak_* API key holding the api:admin scope (or api:config_read, which every write refuses with read_only_key).

Body

application/json
service
string
required

The service to route, as an alert names it.

target
string
required

The Slack channel this service's alerts open in.

enabled
boolean

Whether the route is in force. Omitted leaves the state alone: true on a new route, unchanged on an edit, so saving a paused route does not bring it back into force. Pass false to pause it, true to resume it.

oncall_schedule_id
string | null

The schedule (by its uuid, as list_oncall_schedules answers it) to mention in the thread when this service's alert opens one. It must belong to this same organization. Passing null, or omitting the field, means no mention, and clears one a previous save set, since this call always describes the route's whole state.

Response

Created.