POST   alerts/target_group

Creates a new target group.

Remarks

Use GET alerts/targets route to get the list of values applicable for target_ids.
Returns HTTP 201 Created when successful.

Request example and description

curl --request POST "https://api-asm1.apica.io/v3/alerts/target_group?auth_ticket=C471ADC4-19B4-4219-BBF4-671A97EC653E" --header "Content-Type: application/json" --data-raw "{
  \"name\": \"Developers\",
  \"enabled\": true,
  \"targets\": [
    {
      \"id\": 12,
      \"type\": \"webhook\"
    },
    {
      \"id\": 12,
      \"type\": \"email\"
    },
    {
      \"id\": 12,
      \"type\": \"webhook\"
    }
  ]
}"
NameType Required Description
name String Yes

The group name

enabled Boolean No

The group is enable.

targets Array Yes

The group's targets. Supported targets: 'sms', 'email' and 'webhook'.

id Integer Yes

The target ID.

type String Yes

The target type.