Creates a new alert group. 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 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": "6df98ed4-954d-4f32-aa24-d90eb10068b6",
"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": "2026-02-13T18:03:35.529-08:00",
"updated_at": "2026-02-13T18:03:35.529-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "3d1e176b-1a6f-4325-928d-e7a868b905b7",
"alert_group_id": "6df98ed4-954d-4f32-aa24-d90eb10068b6",
"created_at": "2026-02-13T18:03:35.529-08:00",
"deleted_at": null,
"target_id": "efb64cd1-0f12-41a0-9a9e-41dd1cff4f41",
"target_type": "Service",
"updated_at": "2026-02-13T18:03:35.529-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "c2d01163-c8a1-40a8-94a8-9ed54a9057f4",
"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-02-13T18:03:35.530-08:00",
"updated_at": "2026-02-13T18:03:35.530-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "321eec50-67f7-4b03-8e7b-e1de2c2a9f01",
"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-02-13T18:03:35.531-08:00",
"updated_at": "2026-02-13T18:03:35.531-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "f41562c2-a220-4460-9d75-c4792723b0a9",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}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": "6df98ed4-954d-4f32-aa24-d90eb10068b6",
"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": "2026-02-13T18:03:35.529-08:00",
"updated_at": "2026-02-13T18:03:35.529-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "3d1e176b-1a6f-4325-928d-e7a868b905b7",
"alert_group_id": "6df98ed4-954d-4f32-aa24-d90eb10068b6",
"created_at": "2026-02-13T18:03:35.529-08:00",
"deleted_at": null,
"target_id": "efb64cd1-0f12-41a0-9a9e-41dd1cff4f41",
"target_type": "Service",
"updated_at": "2026-02-13T18:03:35.529-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "c2d01163-c8a1-40a8-94a8-9ed54a9057f4",
"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-02-13T18:03:35.530-08:00",
"updated_at": "2026-02-13T18:03:35.530-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "321eec50-67f7-4b03-8e7b-e1de2c2a9f01",
"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-02-13T18:03:35.531-08:00",
"updated_at": "2026-02-13T18:03:35.531-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "f41562c2-a220-4460-9d75-c4792723b0a9",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}