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 Tenant
Creates a new tenant and assigns the current user as the admin for that tenant.
/api/tenants
-
GET
List Tenants
Returns a list of all tenants that the authenticated user is a member of.
/api/tenants
-
GET
Get Role
Returns the current users role within the Tenant, including permissions.
/api/tenants/{code}/me
-
GET
Get Tenant
Retrieves the details of a tenant using its Code identifier.
/api/tenants/{code}
-
PUT
Update Tenant
Updates the details of a tenant identified by its code.
/api/tenants/{code}
-
DELETE
Delete Tenant
Deletes the tenant identified by its Code.
/api/tenants/{code}