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": "32e0a2b8-6958-4924-955b-806c390e3359",
"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:59:39.166-08:00",
"updated_at": "2026-01-15T01:59:40.222-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "6b056512-81c1-45bc-ae3f-40e178475049",
"alert_group_id": "32e0a2b8-6958-4924-955b-806c390e3359",
"created_at": "2026-01-15T01:59:39.167-08:00",
"deleted_at": null,
"target_id": "55629b71-0c45-45d8-b309-4c18b8b2a7d1",
"target_type": "Service",
"updated_at": "2026-01-15T01:59:39.167-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "f7325785-0938-484e-a561-2396e7ce19e7",
"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:59:40.223-08:00",
"updated_at": "2026-01-15T01:59:40.223-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "a317f099-4981-4c0c-822d-32dcf1817847",
"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:59:40.224-08:00",
"updated_at": "2026-01-15T01:59:40.224-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "a3cc04bf-8024-4eba-b319-863154ffa51c",
"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": "32e0a2b8-6958-4924-955b-806c390e3359",
"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:59:39.166-08:00",
"updated_at": "2026-01-15T01:59:40.222-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "6b056512-81c1-45bc-ae3f-40e178475049",
"alert_group_id": "32e0a2b8-6958-4924-955b-806c390e3359",
"created_at": "2026-01-15T01:59:39.167-08:00",
"deleted_at": null,
"target_id": "55629b71-0c45-45d8-b309-4c18b8b2a7d1",
"target_type": "Service",
"updated_at": "2026-01-15T01:59:39.167-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "f7325785-0938-484e-a561-2396e7ce19e7",
"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:59:40.223-08:00",
"updated_at": "2026-01-15T01:59:40.223-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "a317f099-4981-4c0c-822d-32dcf1817847",
"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:59:40.224-08:00",
"updated_at": "2026-01-15T01:59:40.224-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "a3cc04bf-8024-4eba-b319-863154ffa51c",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}