Creating an alert rule

POST https://{{base_url}}/v6/alert-rules/new.json

Creating an alert rule

Creates a new alert rule in your account, based on properties provided in the POST data. In order to create a new alert rule, the user attempting the creation must be in a role that has the Edit alert rules permission. Users without this permission will receive an error.

Note: when assigning any alert rule to a test (which can be done as part of the creation activity), the user must be in a role that has the Edit tests permission.

Optional (Querystring) Parameters

  • aid={aid} optional and requires the user to be assigned to the target account group, specifies the account group context of the request, obtained from the /account-groups endpoint. Specifying this parameter without the user being assigned to the target account will result in an error response. See Account group context for more information

Request

  • request body must contain fields to be set during creation. See the Alert Rule Metadata page for fields available during alert rule creation.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring