Create / Update Tenants
Changed onAPI to create a new Tenant OR update an existing Tenant
Request
- Base URLhttps://hub.suprsend.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Tenant identifier to create or update. Max 64 chars; allowed characters [a-zA-Z0-9_.-] (converted to lowercase unless case-sensitive IDs are enabled for your organization).
Request body
Example request
{
"parent_id": "acme-corp",
"blocked_channels": [
"sms"
],
"secondary_color": "#00ff00",
"tertiary_color": "#0000ff"
}Response
201 - Created
Tenant object returned. Fields hold the tenant's own local values — values not set on this tenant come back as null (or as empty objects/arrays). For flat tenants (no sub-tenants), unset fields stay unresolved and the tenant simply has no value for them. For sub-tenants, unset fields still return null here, but are resolved from the closest ancestor that has a value set at trigger time.
Changes
- warning
changed the pattern of the
pathrequest parametertenant_idfrom^[a-z0-9_.-]+$to^[a-zA-Z0-9_.-]+$ - warning
removed the request property
- warning
removed the request property
/ - info
added the new optional request property
- info
added the new optional request property
/
- warning
- breaking
added the pattern
^[a-z0-9_.-]+$to thepathrequest parametertenant_id - warning
for the
pathrequest parametertenant_id, the maxLength was set to64 - info
added the new optional request property
- info
added the new optional request property
- info
added the new required request property
with a default value - info
the request property
became optional - info
the
request property default valueAwesome Tenantwas removed
- breaking