TenantCreate
TenantCreate
Section titled “TenantCreate”Create a new Tenant
Endpoint: /api/tenant/tenantcreate
Tags: Tenant
API Details
POST /api/tenant/tenantcreate
Request
Section titled “Request”schema: z.object({ name: Str({ description: "Name of the tenant" }), settings: z.record(z.any()).optional().describe("Tenant-specific settings"), complianceTier: z.nativeEnum(ComplianceTier).optional().default(ComplianceTier.Standard), preferredRegion: z.string().optional(), dataResidencyRequirements: z.array(z.string()).optional(), }),Responses
Section titled “Responses”Status Code: 200
Section titled “Status Code: 200”Returns the created tenant
schema: z.object({ success: Bool(), tenant: Tenant, }),Status Code: 400
Section titled “Status Code: 400”Bad request
schema: z.object({ success: Bool(), error: Str(), }),