PATCH
/
v1
/
alert_groups
/
{id}
Update an alert group
curl --request PATCH \
  --url https://api.rootly.com/v1/alert_groups/{id} \
  --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",
      "conditions": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "property_field_type": "attribute",
          "property_field_name": "<string>",
          "property_field_condition_type": "is_one_of",
          "property_field_value": "<string>",
          "property_field_values": [
            "<string>"
          ],
          "alert_urgency_ids": [
            "<string>"
          ],
          "conditionable_type": "AlertField",
          "conditionable_id": "<string>"
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "978ed797-e975-450a-b41a-219a7fcdb028",
    "type": "alert_groups",
    "attributes": {
      "name": "Group name updated",
      "slug": "123-test-group",
      "description": null,
      "time_window": 10,
      "condition_type": "any",
      "deleted_at": null,
      "created_at": "2025-07-24T00:05:15.191-07:00",
      "updated_at": "2025-07-24T00:05:17.288-07:00",
      "group_by_alert_title": false,
      "group_by_alert_urgency": false,
      "targets": [
        {
          "id": "bab1c7b1-5a40-426a-a75f-002e4566695f",
          "target_type": "Service",
          "target_id": "85260985-1e8e-4dad-82b7-14fac7be56b8",
          "alert_group_id": "978ed797-e975-450a-b41a-219a7fcdb028",
          "deleted_at": null,
          "created_at": "2025-07-24T00:05:15.193-07:00",
          "updated_at": "2025-07-24T00:05:15.193-07:00"
        }
      ],
      "attributes": [],
      "conditions": [
        {
          "id": "41caa2c5-98d5-4437-8082-640dd3d8ace4",
          "property_field_condition_type": "is_one_of",
          "property_field_name": "description",
          "property_field_type": "attribute",
          "property_field_value": null,
          "property_field_values": [
            "Test description"
          ],
          "created_at": "2025-07-24T00:05:17.289-07:00",
          "updated_at": "2025-07-24T00:05:17.289-07:00",
          "conditionable_type": null,
          "conditionable_id": null
        },
        {
          "id": "b72ac9eb-1e1a-4f71-a01f-53f3201ef0ac",
          "property_field_condition_type": "is_one_of",
          "property_field_name": "alert_urgency",
          "property_field_type": "attribute",
          "property_field_value": null,
          "property_field_values": [],
          "created_at": "2025-07-24T00:05:17.290-07:00",
          "updated_at": "2025-07-24T00:05:17.290-07:00",
          "conditionable_type": null,
          "conditionable_id": null,
          "values": [
            {
              "record_id": "1f7a6036-68d4-4a82-8a1e-ef8ec8464f9e",
              "record_type": "AlertUrgency"
            }
          ]
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/vnd.api+json

Response

200
application/vnd.api+json

alert group updated with conditions

The response is of type object.