# Create Tenant

Create a new tenant for the user

Endpoint: POST /user/{userId}/tenant
Version: 2.0.0
Security: bearerToken

## Path parameters:

  - `userId` (string, required)

## Request fields (application/json):

  - `password` (string, required)
    User password for confirmation

## Response 200 fields (application/json):

  - `id` (integer)
    Unique identifier for the tenant
    Example: 1

  - `name` (string)
    Tenant display name
    Example: My Company

  - `domainPrefix` (string)
    Unique domain prefix for the tenant (used in URLs and subdomains)
    Example: abc123

  - `stripeCustomerId` (string)
    Stripe customer ID for billing

  - `connectUrl` (string)
    WebSocket connection URL for IoT/OCPP
    Example: wss://abc123.broker.exolink.cloud/

  - `customDomain` (string)
    Custom domain WebSocket URL (if configured)
    Example: wss://chargers.company.com/

  - `createdAt` (string)
    When the tenant was created

  - `updatedAt` (string)
    When the tenant was last updated

  - `deletedAt` (string)
    When the tenant was deleted (null if active)

