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": [
        {
          "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": "e1c0067b-45c5-4780-9f56-0e837632798d",
    "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-08-13T06:52:37.009-07:00",
      "updated_at": "2025-08-13T06:52:38.625-07:00",
      "group_by_alert_title": false,
      "group_by_alert_urgency": false,
      "targets": [
        {
          "id": "fda2e432-8242-407b-876f-08df262a520a",
          "alert_group_id": "e1c0067b-45c5-4780-9f56-0e837632798d",
          "created_at": "2025-08-13T06:52:37.010-07:00",
          "deleted_at": null,
          "target_id": "e3d85620-3e52-47b0-84c0-c5ce5a78fbd1",
          "target_type": "Service",
          "updated_at": "2025-08-13T06:52:37.010-07:00"
        }
      ],
      "attributes": [],
      "conditions": [
        {
          "id": "a17b6949-b35d-4916-a030-48e7803db8d4",
          "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-08-13T06:52:38.628-07:00",
          "updated_at": "2025-08-13T06:52:38.628-07:00",
          "conditionable_type": null,
          "conditionable_id": null
        },
        {
          "id": "8b2419c2-c2f7-4191-b2c3-3c0bef5e8b23",
          "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-08-13T06:52:38.630-07:00",
          "updated_at": "2025-08-13T06:52:38.630-07:00",
          "conditionable_type": null,
          "conditionable_id": null,
          "values": [
            {
              "record_id": "0095cff7-e46c-4f23-9944-0a4a43b024ce",
              "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.