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"] }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenant_id": "<tenant_id>",
"topic_id": "<topic_id>",
"status": "<status>"
},
"name": "update_tenant_preference"
}
}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 |