Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Resource UUID
Body
application/vnd.api+json
Response
alert group updated with conditions
Update a specific alert group by 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": [
{
"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>"
],
"conditionable_type": "AlertField",
"conditionable_id": "<string>"
}
]
}
}
}'
{
"data": {
"id": "f5bf0b47-22bc-45f7-920f-33fec3aa1536",
"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-10-08T04:32:39.644-07:00",
"updated_at": "2025-10-08T04:32:40.873-07:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "00a11a4a-412b-4164-9355-42ae35f88591",
"alert_group_id": "f5bf0b47-22bc-45f7-920f-33fec3aa1536",
"created_at": "2025-10-08T04:32:39.646-07:00",
"deleted_at": null,
"target_id": "1b99f63e-d337-497d-86fb-e41bca33a2c8",
"target_type": "Service",
"updated_at": "2025-10-08T04:32:39.646-07:00"
}
],
"attributes": [],
"conditions": [
{
"id": "4705cb90-1c66-41a8-89b3-ca272144ac08",
"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-10-08T04:32:40.875-07:00",
"updated_at": "2025-10-08T04:32:40.875-07:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "d54df707-332c-4c08-8e8d-fea5657872f9",
"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-10-08T04:32:40.876-07:00",
"updated_at": "2025-10-08T04:32:40.876-07:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "6dc45c6c-20c8-4a67-8add-345ea910d301",
"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_name": "<string>",
"property_field_condition_type": "is_one_of",
"property_field_value": "<string>",
"property_field_values": [
"<string>"
],
"alert_urgency_ids": [
"<string>"
],
"conditionable_type": "AlertField",
"conditionable_id": "<string>"
}
]
}
}
}'
{
"data": {
"id": "f5bf0b47-22bc-45f7-920f-33fec3aa1536",
"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-10-08T04:32:39.644-07:00",
"updated_at": "2025-10-08T04:32:40.873-07:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "00a11a4a-412b-4164-9355-42ae35f88591",
"alert_group_id": "f5bf0b47-22bc-45f7-920f-33fec3aa1536",
"created_at": "2025-10-08T04:32:39.646-07:00",
"deleted_at": null,
"target_id": "1b99f63e-d337-497d-86fb-e41bca33a2c8",
"target_type": "Service",
"updated_at": "2025-10-08T04:32:39.646-07:00"
}
],
"attributes": [],
"conditions": [
{
"id": "4705cb90-1c66-41a8-89b3-ca272144ac08",
"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-10-08T04:32:40.875-07:00",
"updated_at": "2025-10-08T04:32:40.875-07:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "d54df707-332c-4c08-8e8d-fea5657872f9",
"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-10-08T04:32:40.876-07:00",
"updated_at": "2025-10-08T04:32:40.876-07:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "6dc45c6c-20c8-4a67-8add-345ea910d301",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}