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": "7ae960af-9955-4875-8417-1c46fb077f45",
"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-03T21:24:10.535-08:00",
"updated_at": "2026-01-03T21:24:10.535-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "2801eed2-dcf6-4975-8e5d-c34c5ae055d3",
"alert_group_id": "7ae960af-9955-4875-8417-1c46fb077f45",
"created_at": "2026-01-03T21:24:10.536-08:00",
"deleted_at": null,
"target_id": "ffa561e3-3798-4a8b-b03a-608f67f7c96a",
"target_type": "Service",
"updated_at": "2026-01-03T21:24:10.536-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "b9293416-cad7-4f4c-b24b-420558adba22",
"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-03T21:24:10.536-08:00",
"updated_at": "2026-01-03T21:24:10.536-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "415bcbf8-4a6c-4a1a-bcac-5b1e30c4de4e",
"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-03T21:24:10.537-08:00",
"updated_at": "2026-01-03T21:24:10.537-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "86d1cdc7-b6de-4ea5-b8b0-40e5a1339bcb",
"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": "7ae960af-9955-4875-8417-1c46fb077f45",
"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-03T21:24:10.535-08:00",
"updated_at": "2026-01-03T21:24:10.535-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "2801eed2-dcf6-4975-8e5d-c34c5ae055d3",
"alert_group_id": "7ae960af-9955-4875-8417-1c46fb077f45",
"created_at": "2026-01-03T21:24:10.536-08:00",
"deleted_at": null,
"target_id": "ffa561e3-3798-4a8b-b03a-608f67f7c96a",
"target_type": "Service",
"updated_at": "2026-01-03T21:24:10.536-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "b9293416-cad7-4f4c-b24b-420558adba22",
"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-03T21:24:10.536-08:00",
"updated_at": "2026-01-03T21:24:10.536-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "415bcbf8-4a6c-4a1a-bcac-5b1e30c4de4e",
"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-03T21:24:10.537-08:00",
"updated_at": "2026-01-03T21:24:10.537-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "86d1cdc7-b6de-4ea5-b8b0-40e5a1339bcb",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}