Upsert User Tenant Profile
Changed onAdds or updates the per-tenant profile for a user. Fields you set here override the user's global profile when the workflow is triggered with tenant_id. Body accepts the same shape as Create / Update Users.
post/v1/user/{distinct_id}/tenant/{tenant_id}/
Request
- Base URLhttps://hub.suprsend.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
distinct_idstring required
Unique identifier of the user in your system. If the user doesn't exist yet, it is created.
tenant_idstring required
Tenant to scope the profile update to. Tenant must exist in the workspace.
Request body
Example request
{
"$timezone": "America/New_York",
"$preferred_language": "en",
"$locale": "en_GB"
}Response
201 - Created. The response is the full user object with the merged (effective) profile at the top level and the per-tenant override under tenant.
Example response
{
"distinct_id": "user@example.com",
"tenant": {
"tenant_id": "acme-corp"
}
}Changes
- warning
removed the request property
- warning
- info
endpoint added
- info