replace_tenant_template
Create or replace a tenant notification template (draft unless published is true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title merged into template content when provided | |
| content | Yes | Elemental content document. Example: { "version": "2022-01-01", "elements": [{ "type": "meta", "title": "Welcome" }, { "type": "text", "content": "Thanks for signing up." }] } | |
| routing | No | Message routing tree. Example: { "method": "single", "channels": ["email", "sms"] } | |
| channels | No | Per-channel delivery configuration, keyed by channel name. Example: { "email": { "providers": ["sendgrid"], "routing_method": "single" } } | |
| providers | No | Per-provider configuration, keyed by provider name. Example: { "sendgrid": { "override": { "from": "noreply@example.com" } } } | |
| published | No | When true, publish immediately after save | |
| tenant_id | Yes | The tenant ID | |
| template_id | Yes | The template ID |