Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/vnd.api+json
Response
alert group created with conditions
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": "b370a72e-25fa-4294-84ba-6db14f791d65",
"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-11-06T13:17:33.029-08:00",
"updated_at": "2025-11-06T13:17:33.029-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "930dc7c3-94d4-4aa6-a94c-c8641ba48a5f",
"alert_group_id": "b370a72e-25fa-4294-84ba-6db14f791d65",
"created_at": "2025-11-06T13:17:33.031-08:00",
"deleted_at": null,
"target_id": "972cbb37-d422-4006-a48c-e48afd02e1a0",
"target_type": "Service",
"updated_at": "2025-11-06T13:17:33.031-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "4678d79c-8a4b-4448-bde0-e0a18733f72a",
"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-11-06T13:17:33.032-08:00",
"updated_at": "2025-11-06T13:17:33.032-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "0d1a7ec5-dc48-4977-9526-86ef05211f3c",
"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-11-06T13:17:33.034-08:00",
"updated_at": "2025-11-06T13:17:33.034-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "2146bfab-dbbd-4e01-b38a-ed56f477baec",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
alert group created with conditions
Show child attributes
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": "b370a72e-25fa-4294-84ba-6db14f791d65",
"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-11-06T13:17:33.029-08:00",
"updated_at": "2025-11-06T13:17:33.029-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "930dc7c3-94d4-4aa6-a94c-c8641ba48a5f",
"alert_group_id": "b370a72e-25fa-4294-84ba-6db14f791d65",
"created_at": "2025-11-06T13:17:33.031-08:00",
"deleted_at": null,
"target_id": "972cbb37-d422-4006-a48c-e48afd02e1a0",
"target_type": "Service",
"updated_at": "2025-11-06T13:17:33.031-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "4678d79c-8a4b-4448-bde0-e0a18733f72a",
"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-11-06T13:17:33.032-08:00",
"updated_at": "2025-11-06T13:17:33.032-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "0d1a7ec5-dc48-4977-9526-86ef05211f3c",
"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-11-06T13:17:33.034-08:00",
"updated_at": "2025-11-06T13:17:33.034-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "2146bfab-dbbd-4e01-b38a-ed56f477baec",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}