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": "31f35591-c401-4bb4-9b31-a0e20aacf014",
    "type": "alert_routing_rules",
    "attributes": {
      "name": "Test Alert Routing Rule 1 (Updated)",
      "alerts_source_id": "be9f63ad-4cde-44a8-a5dc-e280a4a4cdd4",
      "condition_type": "all",
      "enabled": false,
      "position": 1,
      "destination": {
        "id": "66e1a15c-303d-4adc-9f63-4de2de3e7a9c",
        "target_type": "EscalationPolicy",
        "target_id": "1c157a35-8ab1-4144-abc8-a8f9b0dab933",
        "created_at": "2025-08-21T23:40:42.487-07:00",
        "updated_at": "2025-08-21T23:40:42.487-07:00"
      },
      "created_at": "2025-08-21T23:40:42.430-07:00",
      "updated_at": "2025-08-21T23:40:45.553-07:00",
      "destinations": [
        {
          "id": "66e1a15c-303d-4adc-9f63-4de2de3e7a9c",
          "target_type": "EscalationPolicy",
          "target_id": "1c157a35-8ab1-4144-abc8-a8f9b0dab933",
          "created_at": "2025-08-21T23:40:42.487-07:00",
          "updated_at": "2025-08-21T23:40:42.487-07:00"
        }
      ],
      "conditions": []
    },
    "relationships": {
      "owning_teams": {
        "data": [
          {
            "id": "eecee7a3-0a67-4c52-b071-ee253a7ace21",
            "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

Response

200
application/vnd.api+json

alert routing rule updated

The response is of type object.