> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mrassistant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Tenant

> Update tenant settings and configuration.

**Purpose:** Complete your organization setup or modify settings

**👤 For Business Users After Signup:**
After signing up, your tenant is auto-created with minimal fields (just name).
Use this endpoint to complete your organization setup:
- Set your organization name properly
- Configure billing plan (starter/business/enterprise)
- Set usage limits (max_concurrent_calls, monthly_call_limit)
- Enable features (SIP, recording, analytics)
- Configure compliance (HIPAA, PCI for healthcare/finance)

**What it does:**
- Update organization name and billing plan
- Adjust usage limits and concurrent call capacity
- Enable/disable features (SIP, recording, analytics)
- Change compliance settings (HIPAA, PCI)
- Update SIP credentials (automatically encrypted)
- Modify webhook configuration for integrations

**Common Use Cases:**
- **Initial Setup:** After signup, set your org name and billing plan
- **Upgrade subscription:** Change billing_plan, increase limits
- **Enable phone calls:** Set sip_enabled=true, configure SIP details
- **Enable enterprise features:** Set hipaa_enabled=true, pci_enabled=true
- **Update webhook:** Change webhook_url for event notifications

**Your tenant_id = your owner_id** (returned in login token)

**Security Notes:**
- SIP passwords are automatically encrypted before storage
- Webhook secrets are stored securely
- All changes are logged for audit trail



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json put /tenants/{tenant_id}
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /tenants/{tenant_id}:
    put:
      tags:
        - tenants
      summary: Update Tenant
      description: >-
        Update tenant settings and configuration.


        **Purpose:** Complete your organization setup or modify settings


        **👤 For Business Users After Signup:**

        After signing up, your tenant is auto-created with minimal fields (just
        name).

        Use this endpoint to complete your organization setup:

        - Set your organization name properly

        - Configure billing plan (starter/business/enterprise)

        - Set usage limits (max_concurrent_calls, monthly_call_limit)

        - Enable features (SIP, recording, analytics)

        - Configure compliance (HIPAA, PCI for healthcare/finance)


        **What it does:**

        - Update organization name and billing plan

        - Adjust usage limits and concurrent call capacity

        - Enable/disable features (SIP, recording, analytics)

        - Change compliance settings (HIPAA, PCI)

        - Update SIP credentials (automatically encrypted)

        - Modify webhook configuration for integrations


        **Common Use Cases:**

        - **Initial Setup:** After signup, set your org name and billing plan

        - **Upgrade subscription:** Change billing_plan, increase limits

        - **Enable phone calls:** Set sip_enabled=true, configure SIP details

        - **Enable enterprise features:** Set hipaa_enabled=true,
        pci_enabled=true

        - **Update webhook:** Change webhook_url for event notifications


        **Your tenant_id = your owner_id** (returned in login token)


        **Security Notes:**

        - SIP passwords are automatically encrypted before storage

        - Webhook secrets are stored securely

        - All changes are logged for audit trail
      operationId: update_tenant_tenants__tenant_id__put
      parameters:
        - name: tenant_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Tenant Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TenantUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tenant'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TenantUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        billing_plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Billing Plan
        sip_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Sip Enabled
        recording_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Recording Enabled
        analytics_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Analytics Enabled
        max_concurrent_calls:
          anyOf:
            - type: integer
              maximum: 1000
              minimum: 1
            - type: 'null'
          title: Max Concurrent Calls
        monthly_call_limit:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Monthly Call Limit
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
      type: object
      title: TenantUpdate
      description: Tenant update model.
    Tenant:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        billing_plan:
          type: string
          maxLength: 100
          minLength: 1
          title: Billing Plan
        sip_enabled:
          type: boolean
          title: Sip Enabled
          default: false
        recording_enabled:
          type: boolean
          title: Recording Enabled
          default: true
        analytics_enabled:
          type: boolean
          title: Analytics Enabled
          default: true
        max_concurrent_calls:
          type: integer
          maximum: 1000
          minimum: 1
          title: Max Concurrent Calls
          default: 10
        monthly_call_limit:
          type: integer
          minimum: 0
          title: Monthly Call Limit
          default: 1000
        id:
          type: string
          format: uuid
          title: Id
        status:
          type: string
          title: Status
        monthly_usage_cents:
          type: integer
          title: Monthly Usage Cents
        meta_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta Data
        sip_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Sip Domain
        sip_username:
          anyOf:
            - type: string
            - type: 'null'
          title: Sip Username
        hipaa_enabled:
          type: boolean
          title: Hipaa Enabled
          default: false
        pci_enabled:
          type: boolean
          title: Pci Enabled
          default: false
        recording_format:
          type: string
          title: Recording Format
          default: mp4
        retention_days:
          type: integer
          title: Retention Days
          default: 90
        data_encryption_enabled:
          type: boolean
          title: Data Encryption Enabled
          default: true
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        webhook_timeout_seconds:
          type: integer
          title: Webhook Timeout Seconds
          default: 20
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - name
        - billing_plan
        - id
        - status
        - monthly_usage_cents
        - created_at
        - updated_at
      title: Tenant
      description: Tenant response model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````