Skip to main content
PATCH /v1/tenants/{product_slug} updates a direct child tenant’s name and/or domain. product_slug itself is never updatable — it’s the tenant’s permanent identifier.

Endpoint

Path Parameter

string
required
The direct child tenant’s slug.

Request Body

At least one of the following is required.
string
A new display name for the tenant. A pure display-value write — no other side effects.
string
A new primary domain for the tenant. Treated as a re-provisioning operation, not a plain rename (see below).

Example Request

What changing domain does

Changing domain re-points the tenant’s identification providers at the new domain, so identification doesn’t silently keep resolving against the old site. The new domain is re-checked against the same domain-reservation rule enforced at tenant creation — if another workspace already claims it, the request fails with 409 and nothing is written, even if name was also supplied in the same request. name is applied only after any domain validation succeeds.

Response

Returns the updated tenant, same shape as Get Tenant:

Required Scope

Requires tenants:write.

Error Responses