Skip to main content
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_condition_type": "is_one_of",
          "property_field_name": "<string>",
          "property_field_value": "<string>",
          "property_field_values": [
            "<string>"
          ],
          "alert_urgency_ids": [
            "<string>"
          ],
          "conditionable_type": "AlertField",
          "conditionable_id": "<string>"
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "f3742c62-a9ed-49bb-b96d-4493772ddf3d",
    "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": "2026-02-04T01:27:40.615-08:00",
      "updated_at": "2026-02-04T01:27:41.716-08:00",
      "group_by_alert_title": false,
      "group_by_alert_urgency": false,
      "targets": [
        {
          "id": "0b78b9d0-2d99-4fd5-ab4b-0e3583fff308",
          "alert_group_id": "f3742c62-a9ed-49bb-b96d-4493772ddf3d",
          "created_at": "2026-02-04T01:27:40.616-08:00",
          "deleted_at": null,
          "target_id": "71a3b30d-4b31-4339-ab3f-e3521e88f70e",
          "target_type": "Service",
          "updated_at": "2026-02-04T01:27:40.616-08:00"
        }
      ],
      "attributes": [],
      "conditions": [
        {
          "id": "7a874b16-ca51-4876-ae94-3401fea4be47",
          "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": "2026-02-04T01:27:41.717-08:00",
          "updated_at": "2026-02-04T01:27:41.717-08:00",
          "conditionable_type": null,
          "conditionable_id": null
        },
        {
          "id": "d285e802-3f9e-4983-8011-3c4ccf8ef83a",
          "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": "2026-02-04T01:27:41.718-08:00",
          "updated_at": "2026-02-04T01:27:41.718-08:00",
          "conditionable_type": null,
          "conditionable_id": null,
          "values": [
            {
              "record_id": "869eb62b-f6d2-48b4-ab25-eec807542c27",
              "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
required

Resource UUID

Body

application/vnd.api+json
data
object
required

Response

alert group updated with conditions

data
object
required