Skip to main content
PUT
/
v1
/
alert_routing_rules
/
{id}
Update an alert routing rule
curl --request PUT \
  --url https://api.rootly.com/v1/alert_routing_rules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "alert_routing_rules",
    "attributes": {
      "name": "<string>",
      "enabled": true,
      "alerts_source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "position": 123,
      "owning_team_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "condition_type": "all",
      "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>"
          ]
        }
      ],
      "destination": {
        "target_type": "Service",
        "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    }
  }
}'
{
  "data": {
    "id": "687ee678-3ce2-4720-8d7d-495360781320",
    "type": "alert_routing_rules",
    "attributes": {
      "name": "Test Alert Routing Rule 1 (Updated)",
      "alerts_source_id": "2a9c6772-e906-4672-8373-c8adbdb4a3b3",
      "condition_type": "all",
      "enabled": false,
      "position": 1,
      "destination": {
        "id": "28c94b93-9fc5-4e5f-b8bb-dbd690684024",
        "target_type": "EscalationPolicy",
        "target_id": "1e28335d-2afd-4c0e-b93b-b6271772e0eb",
        "created_at": "2025-11-04T12:49:37.625-08:00",
        "updated_at": "2025-11-04T12:49:37.625-08:00"
      },
      "created_at": "2025-11-04T12:49:37.513-08:00",
      "updated_at": "2025-11-04T12:49:43.038-08:00",
      "destinations": [
        {
          "id": "28c94b93-9fc5-4e5f-b8bb-dbd690684024",
          "target_type": "EscalationPolicy",
          "target_id": "1e28335d-2afd-4c0e-b93b-b6271772e0eb",
          "created_at": "2025-11-04T12:49:37.625-08:00",
          "updated_at": "2025-11-04T12:49:37.625-08:00"
        }
      ],
      "conditions": []
    },
    "relationships": {
      "owning_teams": {
        "data": [
          {
            "id": "403e7bab-7231-43ff-a925-9c5a965cf23f",
            "type": "groups"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
required

Resource UUID

Body

application/vnd.api+json
data
object
required

Response

alert routing rule updated

data
object
required