Set organization notification rules
Creates or changes an organization-wide rule that sends matching events to a channel of
the organization. event is an exact type (run.failed), a family (run.*) or *.
Built-in rules cannot be changed.
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