Set Alert Rule Destinations
set_alert_rule_destinationsReplace where one alert rule's alerts are delivered. Routing only: the rule's spec and status are untouched. WRITE: ADMIN only.
channelIds are registry channel UUIDs (the id field from the investigation service's list_alert_channels, not Slack channel ids). Omit or pass null to clear the rule's own routing so it inherits the tenant's alerting default (Settings > Notifications, or the investigation service's set_notification_destinations with source alerting). Pass an empty list to switch this rule's alerts off entirely. A per-rule setting outranks the source-level one.
Destinations are not stored on the rule; they are forwarded to the notification gateway. An unknown channel id is rejected and nothing changes. Read the current value with get_alert_rule_destinations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | The rule id (UUID) | |
| channelIds | No | Registry channel UUIDs to deliver to; empty list = off; omit = inherit |