Update a specific alert group by id. Note: For enhanced functionality and future compatibility, consider using the advanced alert grouping with conditions field instead of the legacy group_by_alert_title, group_by_alert_urgency, and attributes fields.
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": "99f70e45-5675-4657-8a30-52754147eb97",
"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-01-15T01:13:32.377-08:00",
"updated_at": "2026-01-15T01:13:33.291-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "510cf905-c1b0-47ba-8b00-e30d2ac8398c",
"alert_group_id": "99f70e45-5675-4657-8a30-52754147eb97",
"created_at": "2026-01-15T01:13:32.377-08:00",
"deleted_at": null,
"target_id": "46e243ce-6469-4246-891a-f95fb362f1e5",
"target_type": "Service",
"updated_at": "2026-01-15T01:13:32.377-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "896e7231-d021-4103-9086-73bed8e216d5",
"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-01-15T01:13:33.292-08:00",
"updated_at": "2026-01-15T01:13:33.292-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "c97af9e6-a79c-44a2-98be-a9c3fe9dff8a",
"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-01-15T01:13:33.292-08:00",
"updated_at": "2026-01-15T01:13:33.292-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "739a8680-d86d-4973-ad21-f37d862bf887",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resource UUID
Show child attributes
alert group updated with conditions
Show child attributes
Was this page helpful?
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": "99f70e45-5675-4657-8a30-52754147eb97",
"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-01-15T01:13:32.377-08:00",
"updated_at": "2026-01-15T01:13:33.291-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "510cf905-c1b0-47ba-8b00-e30d2ac8398c",
"alert_group_id": "99f70e45-5675-4657-8a30-52754147eb97",
"created_at": "2026-01-15T01:13:32.377-08:00",
"deleted_at": null,
"target_id": "46e243ce-6469-4246-891a-f95fb362f1e5",
"target_type": "Service",
"updated_at": "2026-01-15T01:13:32.377-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "896e7231-d021-4103-9086-73bed8e216d5",
"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-01-15T01:13:33.292-08:00",
"updated_at": "2026-01-15T01:13:33.292-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "c97af9e6-a79c-44a2-98be-a9c3fe9dff8a",
"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-01-15T01:13:33.292-08:00",
"updated_at": "2026-01-15T01:13:33.292-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "739a8680-d86d-4973-ad21-f37d862bf887",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}