upsert_suprsend_tenant
Create or update a tenant in a multi-tenant SaaS workspace. Merge properties like name, branding, and contact info for notification management.
Instructions
Create a new tenant or update an existing tenant's properties. Tenants are sub-accounts of a workspace, used to model end-customers in multi-tenant SaaS apps.
tenant_properties is merged with existing — not replaced. Pass only the fields you want to change. Common fields include name, branding URLs, and contact info.
When NOT to use:
For preference defaults — use update_suprsend_tenant_default_preference.
For users / objects within a tenant — use upsert_suprsend_user / upsert_suprsend_object.
Returns: the updated tenant on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | The tenant_id of the tenant to upsert. | |
| tenant_properties | No | The properties to upsert for the tenant. | |
| workspace | No | SuprSend workspace to get the tenant from. |