POST
/
v1
/
alert_groups
curl --request POST \
  --url https://api.rootly.com/v1/alert_groups \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/vnd.api+json'
{
  "data": {
    "id": "ed26baf9-4844-4fb9-9e13-994dd531b2f9",
    "type": "alert_groups",
    "attributes": {
      "name": "Test alert group",
      "slug": "test-alert-group",
      "description": null,
      "time_window": 10,
      "condition_type": "any",
      "group_by_alert_title": false,
      "group_by_alert_urgency": false,
      "deleted_at": null,
      "created_at": "2025-03-13T11:58:34.260-07:00",
      "updated_at": "2025-03-13T11:58:34.260-07:00",
      "targets": [
        {
          "id": "a31e687b-7fdd-4da3-bef7-9ed4b9f536c7",
          "target_type": "Service",
          "target_id": "c28070cb-47d0-402e-8f43-9de265917a91",
          "alert_group_id": "ed26baf9-4844-4fb9-9e13-994dd531b2f9",
          "deleted_at": null,
          "created_at": "2025-03-13T11:58:34.261-07:00",
          "updated_at": "2025-03-13T11:58:34.261-07:00"
        }
      ],
      "attributes": []
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
alert group created
data
object
required