PATCH
/
v1
/
alert_groups
/
{id}
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>"
          ]
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "5b3590ea-ea5c-406a-a910-15e4fa89443c",
    "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-06-20T11:55:56.110-07:00",
      "updated_at": "2025-06-20T11:55:57.841-07:00",
      "group_by_alert_title": false,
      "group_by_alert_urgency": false,
      "targets": [
        {
          "id": "24bb918c-b4e5-434d-94a0-314ac2a5bc9e",
          "target_type": "Service",
          "target_id": "247414cb-f6e6-46a4-a03a-ca43e01b474e",
          "alert_group_id": "5b3590ea-ea5c-406a-a910-15e4fa89443c",
          "deleted_at": null,
          "created_at": "2025-06-20T11:55:56.111-07:00",
          "updated_at": "2025-06-20T11:55:56.111-07:00"
        }
      ],
      "attributes": [],
      "conditions": [
        {
          "id": "6809b800-578c-4cf8-81fe-de32dab8cb15",
          "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-06-20T11:55:57.842-07:00",
          "updated_at": "2025-06-20T11:55:57.842-07:00",
          "conditionable_type": null,
          "conditionable_id": null
        },
        {
          "id": "df1d3718-527a-4ef5-8b72-7b57df4e012d",
          "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-06-20T11:55:57.843-07:00",
          "updated_at": "2025-06-20T11:55:57.843-07:00",
          "conditionable_type": null,
          "conditionable_id": null,
          "values": [
            {
              "record_id": "ed6bb097-03b2-44b8-b922-d0ac4fb7516b",
              "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.