Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/vnd.api+json
Response
alert routing rule created
Creates a new alert routing rule from provided data. Note: If you are an advanced alert routing user, you should use the Alert Routes endpoint instead of this endpoint. If you don’t know whether you are an advanced user, please contact Rootly customer support.
curl --request POST \
--url https://api.rootly.com/v1/alert_routing_rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "alert_routing_rules",
"attributes": {
"name": "<string>",
"enabled": true,
"owning_team_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"alerts_source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"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>"
]
}
],
"destination": {
"target_type": "Service",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}'{
"data": {
"id": "2dd6a770-764f-4a78-80dd-60690d8a3830",
"type": "alert_routing_rules",
"attributes": {
"name": "Test Alert Routing Rule 1",
"alerts_source_id": "a11541c9-cee1-429e-8836-2b9feb8e09f5",
"condition_type": "all",
"enabled": false,
"position": 2,
"destination": {
"id": "99e544f9-efd7-499f-896a-ea4f5533103a",
"target_type": "Group",
"target_id": "49346854-08c5-4eb3-86f3-a657da58da66",
"created_at": "2025-10-31T18:52:49.788-07:00",
"updated_at": "2025-10-31T18:52:49.788-07:00"
},
"created_at": "2025-10-31T18:52:49.786-07:00",
"updated_at": "2025-10-31T18:52:49.786-07:00",
"destinations": [
{
"id": "99e544f9-efd7-499f-896a-ea4f5533103a",
"target_type": "Group",
"target_id": "49346854-08c5-4eb3-86f3-a657da58da66",
"created_at": "2025-10-31T18:52:49.788-07:00",
"updated_at": "2025-10-31T18:52:49.788-07:00"
}
],
"conditions": [
{
"id": "7d869963-3ee9-4b2c-941c-58f5fcd927ec",
"property_field_condition_type": "is_one_of",
"property_field_name": "description",
"property_field_type": "attribute",
"property_field_value": null,
"property_field_values": [
"Open"
],
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-10-31T18:52:49.791-07:00",
"updated_at": "2025-10-31T18:52:49.791-07:00"
}
]
},
"relationships": {
"owning_teams": {
"data": [
{
"id": "49346854-08c5-4eb3-86f3-a657da58da66",
"type": "groups"
}
]
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
alert routing rule created
Show child attributes
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/alert_routing_rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "alert_routing_rules",
"attributes": {
"name": "<string>",
"enabled": true,
"owning_team_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"alerts_source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"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>"
]
}
],
"destination": {
"target_type": "Service",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}'{
"data": {
"id": "2dd6a770-764f-4a78-80dd-60690d8a3830",
"type": "alert_routing_rules",
"attributes": {
"name": "Test Alert Routing Rule 1",
"alerts_source_id": "a11541c9-cee1-429e-8836-2b9feb8e09f5",
"condition_type": "all",
"enabled": false,
"position": 2,
"destination": {
"id": "99e544f9-efd7-499f-896a-ea4f5533103a",
"target_type": "Group",
"target_id": "49346854-08c5-4eb3-86f3-a657da58da66",
"created_at": "2025-10-31T18:52:49.788-07:00",
"updated_at": "2025-10-31T18:52:49.788-07:00"
},
"created_at": "2025-10-31T18:52:49.786-07:00",
"updated_at": "2025-10-31T18:52:49.786-07:00",
"destinations": [
{
"id": "99e544f9-efd7-499f-896a-ea4f5533103a",
"target_type": "Group",
"target_id": "49346854-08c5-4eb3-86f3-a657da58da66",
"created_at": "2025-10-31T18:52:49.788-07:00",
"updated_at": "2025-10-31T18:52:49.788-07:00"
}
],
"conditions": [
{
"id": "7d869963-3ee9-4b2c-941c-58f5fcd927ec",
"property_field_condition_type": "is_one_of",
"property_field_name": "description",
"property_field_type": "attribute",
"property_field_value": null,
"property_field_values": [
"Open"
],
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-10-31T18:52:49.791-07:00",
"updated_at": "2025-10-31T18:52:49.791-07:00"
}
]
},
"relationships": {
"owning_teams": {
"data": [
{
"id": "49346854-08c5-4eb3-86f3-a657da58da66",
"type": "groups"
}
]
}
}
}
}