Alerts

Create alert

Create alert

post/v1/private/alerts

Request body

idstring uuid
namestring
enabledboolean
alert_type'general' | 'slack' | 'pagerduty'
metadataobject
project_idstring uuid

Optional project scope for this alert. When set, the alert is scoped to the specified project. Do NOT also provide a 'scope:project' trigger config — the system will create it automatically from this field. Sending both project_id and a scope:project trigger config will result in an error.

Response

Created

Changes

Changed in 3 of the 57 revisions of this API.12

    • added the new filter:guardrail_type enum value to the request property triggers/items/trigger_configs/items/type

      request-property-enum-value-added

    • added the new optional request property triggers/items/trigger_configs/items/group_index

      new-optional-request-property

    • removed the request property triggers/items/trigger_configs/items/group_index

      request-property-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog