Tenants
Multi-tenant organization management and configuration. Provides endpoints to create new tenants with package assignment and invite code validation, list all tenants the authenticated user belongs to, retrieve tenant details by code, get the current user's role and permissions within a tenant, update tenant information, and delete tenants (with validation to prevent deletion if clients exist). Tenants represent separate organizations within the multi-tenant system.
-
POST Create TenantCreates a new tenant and assigns the current user as the admin for that tenant./tenants
-
GET List TenantsReturns a list of all tenants that the authenticated user is a member of./tenants
-
GET Get RoleReturns the current users role within the Tenant, including permissions./tenants/{code}/me
-
GET Get TenantRetrieves the details of a tenant using its Code identifier./tenants/{code}
-
PUT Update TenantUpdates the details of a tenant identified by its code./tenants/{code}
-
DELETE Delete TenantDeletes the tenant identified by its Code./tenants/{code}