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": "ba38a321-145d-4a74-9169-760fc00b7b5d",
"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-12-24T09:22:32.103-08:00",
"updated_at": "2025-12-24T09:22:32.103-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "2147129a-b35d-4000-a1d8-7d17dbac4b5d",
"alert_group_id": "ba38a321-145d-4a74-9169-760fc00b7b5d",
"created_at": "2025-12-24T09:22:32.103-08:00",
"deleted_at": null,
"target_id": "4073ed2d-357e-4614-8645-1a472c19dab7",
"target_type": "Service",
"updated_at": "2025-12-24T09:22:32.103-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "320494ec-aa45-444f-bf09-609ea4d634f3",
"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-12-24T09:22:32.104-08:00",
"updated_at": "2025-12-24T09:22:32.104-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "e7b8893f-6a32-4a5c-a5bc-ff82405bdfc7",
"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-12-24T09:22:32.105-08:00",
"updated_at": "2025-12-24T09:22:32.105-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "217c74e2-6846-437d-80d3-3689f17634b2",
"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": "ba38a321-145d-4a74-9169-760fc00b7b5d",
"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-12-24T09:22:32.103-08:00",
"updated_at": "2025-12-24T09:22:32.103-08:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "2147129a-b35d-4000-a1d8-7d17dbac4b5d",
"alert_group_id": "ba38a321-145d-4a74-9169-760fc00b7b5d",
"created_at": "2025-12-24T09:22:32.103-08:00",
"deleted_at": null,
"target_id": "4073ed2d-357e-4614-8645-1a472c19dab7",
"target_type": "Service",
"updated_at": "2025-12-24T09:22:32.103-08:00"
}
],
"attributes": [],
"conditions": [
{
"id": "320494ec-aa45-444f-bf09-609ea4d634f3",
"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-12-24T09:22:32.104-08:00",
"updated_at": "2025-12-24T09:22:32.104-08:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "e7b8893f-6a32-4a5c-a5bc-ff82405bdfc7",
"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-12-24T09:22:32.105-08:00",
"updated_at": "2025-12-24T09:22:32.105-08:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "217c74e2-6846-437d-80d3-3689f17634b2",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}