Tenants

List, create, update and delete an organization's tenants.

list_tenants

List an organization’s tenants, with each tenant’s join mode. Maps to GET /organizations/:org/tenants.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug

Returns the list of tenants.

create_tenant

Create a tenant. Only the name and logo are set here; set the join mode afterwards with update_tenant. Maps to POST /organizations/:org/tenants.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
namestringYesTenant name, e.g. Acme
logostring (URL)NoLogo URL

Returns the created tenant.

update_tenant

Change a tenant’s name, logo or join mode. The fields you pass are the fields that change. Maps to PATCH /organizations/:org/tenants/:tenant_id.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
tenant_idstringYesThe tenant to update
namestringNoNew name
logostring (URL)NoNew logo URL
modeclosed, public, workspace or domainNoJoin mode
workspacesarray of { provider, domain }NoFor workspace mode: the SSO provider (e.g. google, ms) and the workspace domain that proves membership
email_domainsarray of stringNoFor domain mode, e.g. ["acme.com"]

closed and public take no configuration.

Returns the updated tenant.

delete_tenant

Soft-delete a tenant. An organization keeps at least one tenant — deleting the last one is a 409. Maps to DELETE /organizations/:org/tenants/:tenant_id.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
tenant_idstringYesThe tenant to delete

Returns OK (no content).