POST
/
v1
/
alert_groups
curl --request POST \
  --url https://api.rootly.com/v1/alert_groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "alert_groups",
    "attributes": {
      "name": "<string>",
      "description": "<string>",
      "time_window": 123,
      "targets": [
        {
          "target_type": "Group",
          "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "attributes": [
        {
          "json_path": "<string>"
        }
      ],
      "group_by_alert_title": 1,
      "group_by_alert_urgency": 1,
      "condition_type": "all"
    }
  }
}'
{
  "data": {
    "id": "c00a3b8a-df80-44c7-8f0c-d4e74554d6cf",
    "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-20T17:47:02.739-07:00",
      "updated_at": "2025-03-20T17:47:02.739-07:00",
      "targets": [
        {
          "id": "5b693aac-3d33-463a-999e-50d9271be5e7",
          "target_type": "Service",
          "target_id": "e33dbd27-bc46-4261-8c37-9b0963f1577a",
          "alert_group_id": "c00a3b8a-df80-44c7-8f0c-d4e74554d6cf",
          "deleted_at": null,
          "created_at": "2025-03-20T17:47:02.740-07:00",
          "updated_at": "2025-03-20T17:47:02.740-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