> ## 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.

# Update a company

> This endpoint allows you to update the details of an existing company.

This is useful for maintaining accurate company information within the system.

It is restricted to admin and company admin users.



## OpenAPI

````yaml /api-reference/openapi-v2.yaml patch /api/v2/companies/{id}/update/
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v2)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Models
    description: Operations about AI models
  - name: Files Search
    description: Operations about files search
  - name: Files
    description: Operations about files
  - name: Upload Sessions
    description: Operations about upload sessions
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
  - name: Feedbacks
    description: Operations about feedbacks
  - name: Reporting
    description: Operations about reporting
  - name: Monitoring
    description: Operations about monitoring
  - name: Platform Status
    description: Operations about platform status
paths:
  /api/v2/companies/{id}/update/:
    patch:
      tags:
        - Companies
      summary: Update a company
      description: >-
        This endpoint allows you to update the details of an existing company.


        This is useful for maintaining accurate company information within the
        system.


        It is restricted to admin and company admin users.
      operationId: api_v2_companies_update_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedUpdateCompanyRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedUpdateCompanyRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedUpdateCompanyRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyInfoResponse'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    PatchedUpdateCompanyRequest:
      type: object
      properties:
        name:
          type: string
        dpo_email:
          type: string
          format: email
        max_users:
          type: integer
        allow_company_admins_to_manage_sso:
          type: boolean
          default: false
        storage_limit_company_ws:
          type: number
          format: double
          nullable: true
        storage_limit_personal_ws:
          type: number
          format: double
          nullable: true
        storage_limit_custom_ws:
          type: number
          format: double
          nullable: true
    CompanyInfoResponse:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        created_at:
          type: string
          format: date-time
        max_users:
          type: integer
        dpo_email:
          type: string
          format: email
        allow_company_admins_to_manage_sso:
          type: boolean
        storage_limit_company_ws:
          type: number
          format: double
        storage_limit_personal_ws:
          type: number
          format: double
        storage_limit_custom_ws:
          type: number
          format: double
        active_members_count:
          type: integer
      required:
        - active_members_count
        - allow_company_admins_to_manage_sso
        - created_at
        - dpo_email
        - id
        - max_users
        - name
        - storage_limit_company_ws
        - storage_limit_custom_ws
        - storage_limit_personal_ws
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````