postV1Alerts

Create an alert

  • active
    Type: boolean
    required

    Whether the alert is active.

  • channel
    Type: stringenum
    required

    Delivery channel for the alert.

    values
    • SLACK
    • HOOK_URL
    • ALL
  • events
    Type: array string[]
    required

    List of events that trigger the alert.

  • automated_test_ids
    Type: array integer[]

    Optional list of automated test IDs this alert should be scoped to.

  • hook_url
    Type: string

    HTTPS URL that receives a JSON POST when an event fires. Required when channel is HOOK_URL or ALL.

  • slack_channel_id
    Type: integerFormat: int32

    ID of a Slack channel previously connected to your project. Required when channel is SLACK or ALL.