set_notification_destinations
Choose which notification channels a source's notifications are delivered to for the authenticated customer. ADMIN only. Pass the notification-channel ids (UUIDs from list_alert_channels). Omit channelIds to clear the destinations, which returns whatever was addressed to the next step down: a subject falls back to its source, and a source falls back to the default, which is the customer's email channel plus their default channel. Pass an empty list to turn notifications off entirely for whatever was addressed.
Pass subject to route one alert rule or one API test on its own. A subject row outranks the source row at delivery time, so turning a source off will not stop deliveries that a subject row still routes. Returns the saved destinations as JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The notification source. Validated against the set of routable sources; an unknown value is rejected with the valid set named in the error. | |
| subject | No | Optional. The id of one thing within the source to route on its own: an alert rule id for source alerting (the id field from get_alert_rules), or an API test id for source e2e-monitoring. Omit to address the whole source. | |
| channelIds | No | Notification channel ids, or omit to clear, or [] to turn off |