v2
latestOpenAPI 3.1.12026-07-2613060964.2 KBUpsert User Tenant Profile
Adds 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}/
Path parameters
distinct_idstring required
Unique identifier of the user in your system. The user's global profile must exist before you upsert a per-tenant profile.
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"
}
}