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": "e05ad404-ee84-46b8-bc4d-da9b47cce512",
"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-01-23T22:53:37.222-08:00",
"updated_at": "2026-01-23T22:53:37.222-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "aacf5a96-3a11-4e3d-a62c-51693f44c83d",
"alert_group_id": "e05ad404-ee84-46b8-bc4d-da9b47cce512",
"created_at": "2026-01-23T22:53:37.223-08:00",
"deleted_at": null,
"target_id": "cbc82aad-559c-46d6-ab04-b287e8d22fe9",
"target_type": "Service",
"updated_at": "2026-01-23T22:53:37.223-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "478ec9ad-690c-4aca-a059-99fe945a33e2",
"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-23T22:53:37.224-08:00",
"updated_at": "2026-01-23T22:53:37.224-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "be7e56cc-9ab5-468c-a22d-47ff7f0717b6",
"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-23T22:53:37.225-08:00",
"updated_at": "2026-01-23T22:53:37.225-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "c6df0195-a5b2-4294-87ab-00ba12f59b9f",
"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": "e05ad404-ee84-46b8-bc4d-da9b47cce512",
"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-01-23T22:53:37.222-08:00",
"updated_at": "2026-01-23T22:53:37.222-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "aacf5a96-3a11-4e3d-a62c-51693f44c83d",
"alert_group_id": "e05ad404-ee84-46b8-bc4d-da9b47cce512",
"created_at": "2026-01-23T22:53:37.223-08:00",
"deleted_at": null,
"target_id": "cbc82aad-559c-46d6-ab04-b287e8d22fe9",
"target_type": "Service",
"updated_at": "2026-01-23T22:53:37.223-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "478ec9ad-690c-4aca-a059-99fe945a33e2",
"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-23T22:53:37.224-08:00",
"updated_at": "2026-01-23T22:53:37.224-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "be7e56cc-9ab5-468c-a22d-47ff7f0717b6",
"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-23T22:53:37.225-08:00",
"updated_at": "2026-01-23T22:53:37.225-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "c6df0195-a5b2-4294-87ab-00ba12f59b9f",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}