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"
      ],
      "owning_team_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "rules": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>",
          "position": 123,
          "fallback_rule": true,
          "destinations": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "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_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": "ce8332e5-815a-43cc-bb4e-3a776df6a366",
    "type": "alert_routes",
    "attributes": {
      "name": "Updated Alert Route Name",
      "enabled": false,
      "created_at": "2025-09-18T20:52:07.133-07:00",
      "updated_at": "2025-09-18T20:52:09.164-07:00",
      "alerts_source_ids": [
        "eed23fa1-b42e-4151-9164-8c1e51e8dfa1"
      ],
      "owning_team_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
data
object
required

Response

alert route updated

data
object
required