Creates a new alert group
curl --request POST \
--url https://api.rootly.com/v1/alert_groups \
--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": "196d8b65-f176-40e1-af88-5d18f6360feb",
"type": "alert_groups",
"attributes": {
"name": "Test alert group",
"slug": "test-alert-group",
"description": null,
"time_window": 10,
"condition_type": "any",
"deleted_at": null,
"created_at": "2025-12-04T21:49:18.587-08:00",
"updated_at": "2025-12-04T21:49:18.587-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "8bbaae27-8150-415c-bd9e-cc03e1f1c54d",
"alert_group_id": "196d8b65-f176-40e1-af88-5d18f6360feb",
"created_at": "2025-12-04T21:49:18.588-08:00",
"deleted_at": null,
"target_id": "4e984413-08b1-4dce-8646-29dc64f0b5d1",
"target_type": "Service",
"updated_at": "2025-12-04T21:49:18.588-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "6cdb2408-1157-4ffa-a4f7-ca95c78ba090",
"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-12-04T21:49:18.589-08:00",
"updated_at": "2025-12-04T21:49:18.589-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "70d09a59-3999-4e06-8451-13a1c053b3ab",
"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-12-04T21:49:18.590-08:00",
"updated_at": "2025-12-04T21:49:18.590-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "7219c0a2-6ac4-46fe-8015-1ec1c98d6c08",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
alert_groups Show child attributes
The name of the alert group
The description of the alert urgency
The length of time an Alert Group should stay open and accept new alerts
Whether the alerts should be grouped by titles.
1, 0 Whether the alerts should be grouped by urgencies.
1, 0 Group alerts when ANY or ALL of the fields are matching.
all, any Show child attributes
The type of the property field
attribute, payload, alert_field The condition type of the property field
is_one_of, is_not_one_of, contains, does_not_contain, starts_with, ends_with, matches_regex, is_empty, matches_existing_alert The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alert_urgency' and 'external_url' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
The value of the property field. Can be null if the property field condition type is 'is_one_of' or 'is_not_one_of'
The values of the property field. Need to be passed if the property field condition type is 'is_one_of' or 'is_not_one_of' except for when property field name is 'alert_urgency'
The Alert Urgency ID's to check in the condition. Only need to be set when the property field type is 'attribute', the property field name is 'alert_urgency' and the property field condition type is 'is_one_of' or 'is_not_one_of'
The type of the conditionable
AlertField The ID of the conditionable. If conditionable_type is AlertField, this is the ID of the alert field.
alert group created with conditions
Show child attributes
Unique ID of the alert group
alert_groups Show child attributes
The name of the alert group
The description of the alert group
The slug of the alert group
Grouping condition for the alert group
Time window for the alert grouping
Date of creation
Date of last update
Date or deletion
Whether the alerts are grouped by title or not
Whether the alerts are grouped by urgency or not
The conditions for the alert group
Show child attributes
The type of the property field
attribute, payload, alert_field The condition type of the property field
is_one_of, is_not_one_of, contains, does_not_contain, starts_with, ends_with, matches_regex, is_empty, matches_existing_alert The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alert_urgency' and 'external_url' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
The value of the property field. Can be null if the property field condition type is 'is_one_of' or 'is_not_one_of'
The values of the property field. Used if the property field condition type is 'is_one_of' or 'is_not_one_of' except for when property field name is 'alert_urgency'
The Alert Urgency ID's to check in the condition. Only need to be set when the property field type is 'attribute', the property field name is 'alert_urgency' and the property field condition type is 'is_one_of' or 'is_not_one_of'
The type of the conditionable
AlertField The ID of the conditionable. If conditionable_type is AlertField, this is the ID of the alert field.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/alert_groups \
--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": "196d8b65-f176-40e1-af88-5d18f6360feb",
"type": "alert_groups",
"attributes": {
"name": "Test alert group",
"slug": "test-alert-group",
"description": null,
"time_window": 10,
"condition_type": "any",
"deleted_at": null,
"created_at": "2025-12-04T21:49:18.587-08:00",
"updated_at": "2025-12-04T21:49:18.587-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "8bbaae27-8150-415c-bd9e-cc03e1f1c54d",
"alert_group_id": "196d8b65-f176-40e1-af88-5d18f6360feb",
"created_at": "2025-12-04T21:49:18.588-08:00",
"deleted_at": null,
"target_id": "4e984413-08b1-4dce-8646-29dc64f0b5d1",
"target_type": "Service",
"updated_at": "2025-12-04T21:49:18.588-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "6cdb2408-1157-4ffa-a4f7-ca95c78ba090",
"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-12-04T21:49:18.589-08:00",
"updated_at": "2025-12-04T21:49:18.589-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "70d09a59-3999-4e06-8451-13a1c053b3ab",
"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-12-04T21:49:18.590-08:00",
"updated_at": "2025-12-04T21:49:18.590-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "7219c0a2-6ac4-46fe-8015-1ec1c98d6c08",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}