PUT
/
v1
/
alert_routes
/
{id}
Update an alert route
curl --request PUT \
  --url https://api.rootly.com/v1/alert_routes/{id} \
  --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>",
          "enabled": true,
          "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"
          },
          "condition_groups": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "position": 123,
              "conditions": [
                {
                  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "property_field_type": "attribute",
                  "property_field_name": "<string>",
                  "property_field_condition_type": "is_one_of",
                  "property_field_value": "<string>",
                  "property_field_values": [
                    "<string>"
                  ],
                  "conditionable_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "conditionable_type": "<string>",
                  "created_at": "<string>",
                  "updated_at": "<string>"
                }
              ],
              "created_at": "<string>",
              "updated_at": "<string>"
            }
          ],
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ],
      "alert_routing_rule_targets_attributes": [
        {
          "target_type": "Service",
          "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "alert_routing_rule_condition_groups_attributes": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "position": 123,
          "conditions": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "property_field_type": "attribute",
              "property_field_name": "<string>",
              "property_field_condition_type": "is_one_of",
              "property_field_value": "<string>",
              "property_field_values": [
                "<string>"
              ],
              "conditionable_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "conditionable_type": "<string>",
              "created_at": "<string>",
              "updated_at": "<string>"
            }
          ],
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ],
      "alert_routing_rule_conditions_attributes": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "property_field_type": "attribute",
          "property_field_name": "<string>",
          "property_field_condition_type": "is_one_of",
          "property_field_value": "<string>",
          "property_field_values": [
            "<string>"
          ],
          "conditionable_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "conditionable_type": "<string>",
          "created_at": "<string>",
          "updated_at": "<string>"
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "57898765-02b8-4159-9e69-a5e12b303cbe",
    "type": "alert_routes",
    "attributes": {
      "name": "Updated Alert Route Name",
      "enabled": false,
      "created_at": "2025-08-26T21:10:28.396-07:00",
      "updated_at": "2025-08-26T21:10:30.493-07:00",
      "alerts_source_ids": [
        "f0e94001-2be5-4836-ab05-90d5cdf1d6bf"
      ],
      "owner_group_ids": []
    },
    "relationships": {
      "alert_routing_rules": {
        "data": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/vnd.api+json

Response

200
application/vnd.api+json

alert route updated

The response is of type object.