Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
Creates an alert route - Rootly
Nothing Special   »   [go: up one dir, main page]

Skip to main content
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"
      ],
      "owning_team_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "rules": [
        {
          "name": "<string>",
          "position": 123,
          "fallback_rule": true,
          "destinations": [
            {
              "target_type": "Service",
              "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
            }
          ],
          "condition_groups": [
            {
              "position": 123,
              "conditions": [
                {
                  "property_field_condition_type": "is_one_of",
                  "property_field_name": "<string>",
                  "property_field_type": "attribute",
                  "property_field_value": "<string>",
                  "property_field_values": [
                    "<string>"
                  ],
                  "alert_urgency_ids": [
                    "<string>"
                  ],
                  "conditionable_type": "AlertField",
                  "conditionable_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "fd8c58e1-ea75-4aaa-a5fa-e0f474903cc4",
    "type": "alert_routes",
    "attributes": {
      "name": "Test Alert Route f2c0",
      "enabled": true,
      "created_at": "2025-10-20T08:26:58.229-07:00",
      "updated_at": "2025-10-20T08:26:58.229-07:00",
      "alerts_source_ids": [
        "688a5a44-b98b-41bc-a144-534df5796fc0"
      ],
      "owning_team_ids": [
        "c571251f-b0c8-439f-90ff-b8e31ee08a0b"
      ]
    },
    "relationships": {
      "alert_routing_rules": {
        "data": [
          {
            "id": "e4c2feb5-ba91-4e4f-b67e-09b9e940fd1d",
            "type": "alert_routing_rules"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "e4c2feb5-ba91-4e4f-b67e-09b9e940fd1d",
      "type": "alert_routing_rules",
      "attributes": {
        "name": "Test Routing Rule",
        "alerts_source_id": null,
        "condition_type": "all",
        "enabled": true,
        "position": 1,
        "destination": {
          "id": "2f54803b-2b77-47a3-ae66-8d347c863894",
          "target_type": "Group",
          "target_id": "c571251f-b0c8-439f-90ff-b8e31ee08a0b",
          "created_at": "2025-10-20T08:26:58.242-07:00",
          "updated_at": "2025-10-20T08:26:58.242-07:00"
        },
        "created_at": "2025-10-20T08:26:58.234-07:00",
        "updated_at": "2025-10-20T08:26:58.234-07:00",
        "destinations": [
          {
            "id": "2f54803b-2b77-47a3-ae66-8d347c863894",
            "target_type": "Group",
            "target_id": "c571251f-b0c8-439f-90ff-b8e31ee08a0b",
            "created_at": "2025-10-20T08:26:58.242-07:00",
            "updated_at": "2025-10-20T08:26:58.242-07:00"
          }
        ],
        "condition_groups": [
          {
            "id": "35b13c5c-5f76-4b40-9a7a-605c396f0550",
            "position": 1,
            "created_at": "2025-10-20T08:26:58.243-07:00",
            "updated_at": "2025-10-20T08:26:58.243-07:00",
            "conditions": [
              {
                "id": "8eb25974-e3e0-40dc-8d48-f1f59f50321e",
                "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-10-20T08:26:58.246-07:00",
                "updated_at": "2025-10-20T08:26:58.246-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
data
object

Response

unknown attribute filtered out gracefully

data
object
required
I