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": "358910e3-ddc6-4e23-af18-90c88b2a5dc0",
"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-09-17T17:43:02.027-07:00",
"updated_at": "2025-09-17T17:43:02.027-07:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "c0b2c8a5-6ae3-46da-92dd-cf477b16d417",
"alert_group_id": "358910e3-ddc6-4e23-af18-90c88b2a5dc0",
"created_at": "2025-09-17T17:43:02.030-07:00",
"deleted_at": null,
"target_id": "e8c309ec-051c-4ff8-b1e6-df807e518f86",
"target_type": "Service",
"updated_at": "2025-09-17T17:43:02.030-07:00"
}
],
"attributes": [],
"conditions": [
{
"id": "2b701b1f-d0c4-4b26-8918-fd410473e2e8",
"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-09-17T17:43:02.032-07:00",
"updated_at": "2025-09-17T17:43:02.032-07:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "bf055c1e-2547-4970-a2d8-fda76dca928b",
"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-09-17T17:43:02.034-07:00",
"updated_at": "2025-09-17T17:43:02.034-07:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "16f6fe0f-82b8-4f6d-8595-440f902ccdde",
"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": "358910e3-ddc6-4e23-af18-90c88b2a5dc0",
"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-09-17T17:43:02.027-07:00",
"updated_at": "2025-09-17T17:43:02.027-07:00",
"group_by_alert_title": false,
"group_by_alert_urgency": false,
"targets": [
{
"id": "c0b2c8a5-6ae3-46da-92dd-cf477b16d417",
"alert_group_id": "358910e3-ddc6-4e23-af18-90c88b2a5dc0",
"created_at": "2025-09-17T17:43:02.030-07:00",
"deleted_at": null,
"target_id": "e8c309ec-051c-4ff8-b1e6-df807e518f86",
"target_type": "Service",
"updated_at": "2025-09-17T17:43:02.030-07:00"
}
],
"attributes": [],
"conditions": [
{
"id": "2b701b1f-d0c4-4b26-8918-fd410473e2e8",
"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-09-17T17:43:02.032-07:00",
"updated_at": "2025-09-17T17:43:02.032-07:00",
"conditionable_type": null,
"conditionable_id": null
},
{
"id": "bf055c1e-2547-4970-a2d8-fda76dca928b",
"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-09-17T17:43:02.034-07:00",
"updated_at": "2025-09-17T17:43:02.034-07:00",
"conditionable_type": null,
"conditionable_id": null,
"values": [
{
"record_id": "16f6fe0f-82b8-4f6d-8595-440f902ccdde",
"record_type": "AlertUrgency"
}
]
}
]
}
}
}