Set realm notification rules
Creates or changes a rule that sends matching events to a channel: for the realm (or one
of its teams) with realm_id, or organization-wide with only org_id. event is an
exact type (run.failed), a family (run.*) or *. recipients picks who receives it
for channels that address people.
Requires a signed-in user token; with realm_id, a realm operator (or higher) with the rules.manage.realm permission on that realm; with org_id, a role with the rules.manage permission in that organization. One of realm_id or org_id is required.
Authorizations
User PAT (cliq_tok_…, including session-scoped) or realm token (cliq_dt_…).
Body
Event selector (exact type, family wildcard like run.*, or *)
1Target notification channel id
1Organization this call targets. Required for account-scoped channel/rule ops and inbox.
When set, upsert a realm/team rule; omit for org-global
1Optional team scope under the realm
1Rule priority (higher wins within a tier when supported)
Who receives it: invitee | org_owners | inviter | user | user ids; null = the channel destinations; omit to keep