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_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": "8b2465e0-38dc-47ba-bf78-47522e8d01ed",
"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-07-05T07:39:01.810-07:00",
"updated_at": "2025-07-05T07:39:01.810-07:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "ae9a00ec-0559-4566-8bef-5e26d1273860",
"target_type": "Service",
"target_id": "ae3561da-3f85-410f-8abe-95c663edd776",
"alert_group_id": "8b2465e0-38dc-47ba-bf78-47522e8d01ed",
"deleted_at": null,
"created_at": "2025-07-05T07:39:01.811-07:00",
"updated_at": "2025-07-05T07:39:01.811-07:00"
}
],
"attributes": [],
"conditions": [
{
"id": "798e215f-c503-4f5b-bb7f-650df6c3cf39",
"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-07-05T07:39:01.813-07:00",
"updated_at": "2025-07-05T07:39:01.813-07:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "b7bb575c-045e-4907-be0c-c07e45e073b6",
"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-07-05T07:39:01.814-07:00",
"updated_at": "2025-07-05T07:39:01.814-07:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "1788a1be-7c3b-4456-a129-2dd91e9d2558",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
alert group created with conditions
The response is of type object
.
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_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": "8b2465e0-38dc-47ba-bf78-47522e8d01ed",
"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-07-05T07:39:01.810-07:00",
"updated_at": "2025-07-05T07:39:01.810-07:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "ae9a00ec-0559-4566-8bef-5e26d1273860",
"target_type": "Service",
"target_id": "ae3561da-3f85-410f-8abe-95c663edd776",
"alert_group_id": "8b2465e0-38dc-47ba-bf78-47522e8d01ed",
"deleted_at": null,
"created_at": "2025-07-05T07:39:01.811-07:00",
"updated_at": "2025-07-05T07:39:01.811-07:00"
}
],
"attributes": [],
"conditions": [
{
"id": "798e215f-c503-4f5b-bb7f-650df6c3cf39",
"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-07-05T07:39:01.813-07:00",
"updated_at": "2025-07-05T07:39:01.813-07:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "b7bb575c-045e-4907-be0c-c07e45e073b6",
"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-07-05T07:39:01.814-07:00",
"updated_at": "2025-07-05T07:39:01.814-07:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "1788a1be-7c3b-4456-a129-2dd91e9d2558",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}