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

# Import company model configuration

> Assign models to the authenticated user's company from a JSON config. Idempotent: existing assignments are skipped. Unknown model UUIDs are reported as errors.



## OpenAPI

````yaml /api-reference/openapi-v3-company.yaml post /api/v3/company/model-config/import
openapi: 3.1.0
info:
  title: LightOn API
  version: 3.15.0 (v3-company)
  description: >-
    LightOn gives you an API to search, parse, and ingest documents at scale.
    Build knowledge-retrieval pipelines without managing vector databases or OCR
    models.
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Models
    description: Operations about AI models
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: User Groups
    description: Operations about user groups
  - name: Companies
    description: Operations about companies
paths:
  /api/v3/company/model-config/import:
    post:
      tags:
        - Models
      summary: Import company model configuration
      description: >-
        Assign models to the authenticated user's company from a JSON config.
        Idempotent: existing assignments are skipped. Unknown model UUIDs are
        reported as errors.
      operationId: api_v3_company_model_config_import_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyModelConfig'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CompanyModelConfig'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CompanyModelConfig'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyModelConfigImportResultResponse'
          description: ''
        '503':
          description: >-
            API is under maintenance. Check `GET /api/v3/system/status` for
            active periods and retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceMaintenance503'
      security:
        - bearerAuth: []
components:
  schemas:
    CompanyModelConfig:
      description: >-
        Serialized company model configuration for export/import.


        API keys are never included. Import is idempotent: existing assignments
        are skipped.
      properties:
        version:
          default: 1
          description: Config format version.
          title: Version
          type: integer
        assigned_models:
          description: Models assigned to the company.
          items:
            $ref: '#/components/schemas/CompanyModelEntry'
          title: Assigned Models
          type: array
      title: CompanyModelConfig
      type: object
    CompanyModelConfigImportResultResponse:
      description: >-
        Outcome of an import: which models were newly assigned, already
        assigned, or unresolvable.
      properties:
        assigned:
          description: Technical names newly assigned to the company.
          items:
            type: string
          title: Assigned
          type: array
        skipped:
          description: Technical names already assigned — left untouched.
          items:
            type: string
          title: Skipped
          type: array
        errors:
          description: Entries that could not be resolved, with a reason.
          items:
            type: string
          title: Errors
          type: array
      title: CompanyModelConfigImportResultResponse
      type: object
    ServiceMaintenance503:
      type: object
      description: >-
        Returned by the maintenance middleware when the requested endpoint is
        blocked.
      required:
        - detail
        - error
        - mode
      properties:
        detail:
          type: string
          example: System is under maintenance.
        error:
          type: string
          example: service_maintenance
        mode:
          type: string
          enum:
            - full_shutdown
            - warning_banner
          description: >-
            `full_shutdown` blocks all traffic; `warning_banner` also blocks and
            shows a dismissible toast.
        reason:
          type: string
          description: Operator-supplied maintenance reason, if any.
        started_at:
          type: string
          format: date-time
        endpoint_category_names:
          type: array
          items:
            type: string
          description: >-
            Non-empty only for category-scoped periods. Empty means all
            endpoints are affected.
    CompanyModelEntry:
      properties:
        uuid:
          description: Paradigm UUID of the model.
          format: uuid
          title: Uuid
          type: string
        technical_name:
          description: Technical name of the model in LiteLLM.
          title: Technical Name
          type: string
        is_default:
          default: false
          description: Whether this is the default model for the company.
          title: Is Default
          type: boolean
      required:
        - uuid
        - technical_name
      title: CompanyModelEntry
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````