Create / Update Tenants
API to create a new Tenant OR update an existing Tenant
Authorizations
Pass as Bearer <API_KEY>
. Get API Key from SuprSend dashboard Developers -> API Keys section.
Path Parameters
unique identifier of the tenant that you want to create / update
Body
Name of the tenant. You can add company / organization name here
URL of the tenant logo
Primary color of the tenant - used for designing tenant template. If you don't provide any of the colors for the tenant, SuprSend will assume you want to use the default values, so color settings will automatically be set to the color settings of default tenant.
Secondary color of the tenant - not used for designing the default templates. You can however add this property and use it in your templates
"#00ff00"
Tertiary color of the tenant - not used for designing the default templates. You can however add this property and use it in your templates
"#0000ff"
Link of the preference page inside the tenant product
urls of social media accounts of the tenant. If you really want to remove any social link, you must set its value="" (instead of null)
Custom properties associated with the tenant. Update operation on properties works like upsert on 1st-level keys (i.e. if top-level key doesn't already exist, then it will be added, otherwise its value will be replaced by the new value. All other key-value pairs will remain unchanged).
Response
Updated Object Payload is returned in response. JSON structure similar to request payload.
Was this page helpful?