update_tenant_preference
Set the default notification preference for a subscription topic on a tenant. This controls tenant-level defaults — it does NOT set per-user preferences (use the user preferences API for that). The topic_id must already exist as a subscription topic in the workspace; a 404 means the topic has not been created yet. Example: { tenant_id: "acme", topic_id: "marketing-updates", status: "OPTED_IN", has_custom_routing: true, custom_routing: ["email", "push"] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Subscription status for the topic | |
| topic_id | Yes | The subscription topic ID — must already exist in the workspace. A 404 response means the topic does not exist; create it in the Preferences Editor first. | |
| tenant_id | Yes | The tenant ID | |
| custom_routing | No | Default channels when has_custom_routing is enabled | |
| has_custom_routing | No | When true, use custom_routing instead of template defaults |