POST
/
v1
/
alert_routes
Creates an alert route
curl --request POST \
  --url https://api.rootly.com/v1/alert_routes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "alert_routes",
    "attributes": {
      "name": "<string>",
      "enabled": true,
      "alerts_source_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "owner_group_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "alert_routing_rules_attributes": [
        {
          "name": "<string>",
          "fallback_rule": true,
          "alert_routing_rule_targets_attributes": [
            {
              "name": "<string>",
              "target_type": "Service",
              "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
            }
          ],
          "alert_routing_rule_condition_groups_attributes": [
            {
              "position": 123,
              "alert_routing_rule_conditions_attributes": [
                {
                  "property_class": "<string>",
                  "property_field_condition_type": "is_one_of",
                  "property_field_name": "<string>",
                  "property_field_type": "attribute",
                  "property_field_value": "<string>",
                  "property_field_values": [
                    "<string>"
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "0b4bf686-c151-4da5-a42b-cc5f03b932fd",
    "type": "alert_routes",
    "attributes": {
      "name": "Test Alert Route 7e9e",
      "enabled": true,
      "created_at": "2025-08-26T21:10:29.978-07:00",
      "updated_at": "2025-08-26T21:10:29.978-07:00",
      "alerts_source_ids": [
        "f0e94001-2be5-4836-ab05-90d5cdf1d6bf"
      ],
      "owner_group_ids": [
        "0a71045b-163f-4d2e-ad93-6551c83d1b08"
      ]
    },
    "relationships": {
      "alert_routing_rules": {
        "data": [
          {
            "id": "ab7ccfd4-f4d0-4bff-8ad1-7c666ba32efb",
            "type": "alert_routing_rules"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "ab7ccfd4-f4d0-4bff-8ad1-7c666ba32efb",
      "type": "alert_routing_rules",
      "attributes": {
        "name": "Test Routing Rule",
        "alerts_source_id": null,
        "condition_type": "all",
        "enabled": true,
        "position": 1,
        "destination": {
          "id": "1ada6742-e6b8-4c1b-8c4c-0338c8596639",
          "target_type": "Group",
          "target_id": "0a71045b-163f-4d2e-ad93-6551c83d1b08",
          "created_at": "2025-08-26T21:10:29.990-07:00",
          "updated_at": "2025-08-26T21:10:29.990-07:00"
        },
        "created_at": "2025-08-26T21:10:29.983-07:00",
        "updated_at": "2025-08-26T21:10:29.983-07:00",
        "destinations": [
          {
            "id": "1ada6742-e6b8-4c1b-8c4c-0338c8596639",
            "target_type": "Group",
            "target_id": "0a71045b-163f-4d2e-ad93-6551c83d1b08",
            "created_at": "2025-08-26T21:10:29.990-07:00",
            "updated_at": "2025-08-26T21:10:29.990-07:00"
          }
        ],
        "condition_groups": [
          {
            "id": "311e7425-2beb-4855-b2d9-dcb9e4806240",
            "position": 1,
            "created_at": "2025-08-26T21:10:29.991-07:00",
            "updated_at": "2025-08-26T21:10:29.991-07:00",
            "conditions": [
              {
                "id": "a729d23b-03a4-4267-84d3-b3c9ce1cde7c",
                "property_field_condition_type": "is_one_of",
                "property_field_name": "summary",
                "property_field_type": "attribute",
                "property_field_value": null,
                "property_field_values": [
                  "Error from system"
                ],
                "conditionable_id": null,
                "conditionable_type": null,
                "created_at": "2025-08-26T21:10:29.994-07:00",
                "updated_at": "2025-08-26T21:10:29.994-07:00"
              }
            ]
          }
        ]
      },
      "relationships": {
        "owning_teams": {
          "data": []
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json

Response

201
application/vnd.api+json

alert route created

The response is of type object.