Skip to main content
POST
Create
🔑 Requires the alert_grouping_preferences.update scope.

Authorizations

Authorization
string
header
required

API key from your incident.io dashboard (Settings → API keys)

Body

application/json
default
object
required

The fallback branch: how to group the alerts that no conditional branch matches

Example:
kind
enum<string>
required

Which preference this is. A team's preference groups the alerts of its team. The organisation's default groups alerts that no team's preference groups, and is used only by alert rules.

Available options:
default,
team
Example:

"team"

branches
object[]

Grouping branches in order. Alert rules group an alert by the first branch whose conditions hold, else by the default. Alert routes only use the default. Omit it on an update to keep the current branches and expressions. Only organisations that use alert rules can add or change branches.

Example:
expressions
object[]

Expressions the branches' conditions test or compare against, as expressions["reference"]. Omit it on an update to keep the current expressions, which are also kept when branches are omitted.

Example:
team_id
string

The catalog entry ID of the team. Set it for a team's preference only.

Example:

"01G0J1EXE7AXZ2C93K61WBPYEH"

Response

Created response.

alert_grouping_preference
object
required

An alert grouping preference: one team's, or the organisation's default