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",
          "property_field_value": "<string>"
        }
      ],
      "destination": {
        "target_type": "Group",
        "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    }
  }
}'
{
  "data": {
    "id": "3df3b109-67d8-409c-90b2-9f243bc4147d",
    "type": "alert_routing_rules",
    "attributes": {
      "name": "Test Alert Routing Rule 1 (Updated)",
      "alerts_source_id": "f0b40ec9-d633-4517-b685-41f8b1ecdea2",
      "condition_type": "all",
      "enabled": false,
      "created_at": "2025-03-28T22:57:40.763-07:00",
      "updated_at": "2025-03-28T22:57:45.412-07:00",
      "destination": {
        "id": "9f6f8a02-4ea9-4592-954f-70ca5c68d70c",
        "target_type": "EscalationPolicy",
        "target_id": "dff142a4-18e5-4533-819d-f664e13608be",
        "created_at": "2025-03-28T22:57:40.978-07:00",
        "updated_at": "2025-03-28T22:57:40.978-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
data
object
required

Response

200
application/vnd.api+json
alert routing rule updated
data
object
required