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": "email"
    }
  ]
}"
NameType Required Description
nameStringYes

The group name

enabledBooleanNo

The group is enable.

targetsArrayYes

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

idIntegerYes

The target ID.

typeStringYes

The target type.