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"
    }
  }
}'
{
  "data": {
    "id": "ebae8403-dedf-4153-a931-839f31b840c7",
    "type": "alert_groups",
    "attributes": {
      "name": "Group name updated",
      "slug": "123-test-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-22T22:57:29.972-07:00",
      "updated_at": "2025-03-22T22:57:31.820-07:00",
      "targets": [
        {
          "id": "4c0ccac8-c7e9-4a7a-8706-7864419af74d",
          "target_type": "Service",
          "target_id": "7b6608eb-b896-404b-9d66-65a64a4bb1ac",
          "alert_group_id": "ebae8403-dedf-4153-a931-839f31b840c7",
          "deleted_at": null,
          "created_at": "2025-03-22T22:57:29.974-07:00",
          "updated_at": "2025-03-22T22:57:29.974-07:00"
        }
      ],
      "attributes": []
    }
  }
}

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
data
object
required

Response

200
application/vnd.api+json
alert group updated
data
object
required