PUT
/
v1
/
alert_routing_rules
/
{id}
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",
      "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": "9bed6234-49d0-42e5-ae3a-4677077dde33",
    "type": "alert_routing_rules",
    "attributes": {
      "name": "Test Alert Routing Rule 1 (Updated)",
      "alerts_source_id": "fe5d17d8-4452-4b88-a83d-6972d0667eaa",
      "condition_type": "all",
      "enabled": false,
      "created_at": "2025-06-19T02:37:09.603-07:00",
      "updated_at": "2025-06-19T02:37:13.430-07:00",
      "destination": {
        "id": "c48e67a1-599a-4d1a-9e7e-8089b250469f",
        "target_type": "EscalationPolicy",
        "target_id": "b9562bb1-fc04-444f-85a3-c5c4b8c14e02",
        "created_at": "2025-06-19T02:37:09.906-07:00",
        "updated_at": "2025-06-19T02:37:09.906-07:00"
      },
      "conditions": []
    },
    "relationships": {
      "owning_teams": {
        "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 routing rule updated

The response is of type object.