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

# Partially update a company member

> This endpoint allows to update a specific company member by ID.

**PUT:** Requires all fields (first_name, last_name, account_expiration_date, language).
**PATCH:** Allows partial updates - only provide the fields you want to change.

**Permissions:**
- Admin, SysAdmin, Account Manager: can update any user
- Company Admin: can update users from their own company only

**Throttling:** 60 requests per minute

It is API Key protected and restricted to users with appropriate permissions.



## OpenAPI

````yaml /api-reference/openapi-v3.yaml patch /api/v3/users/{id}
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Files Processing
    description: Operations about files processing
  - name: Tags
    description: Operations about tags
  - 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
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/users/{id}:
    patch:
      tags:
        - Users
      summary: Partially update a company member
      description: >-
        This endpoint allows to update a specific company member by ID.


        **PUT:** Requires all fields (first_name, last_name,
        account_expiration_date, language).

        **PATCH:** Allows partial updates - only provide the fields you want to
        change.


        **Permissions:**

        - Admin, SysAdmin, Account Manager: can update any user

        - Company Admin: can update users from their own company only


        **Throttling:** 60 requests per minute


        It is API Key protected and restricted to users with appropriate
        permissions.
      operationId: api_v3_users_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/PatchedUpdateCompanyMemberRequestSerializerV3
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/PatchedUpdateCompanyMemberRequestSerializerV3
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/PatchedUpdateCompanyMemberRequestSerializerV3
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyMemberResponse'
          description: Company member updated successfully
        '400':
          description: Invalid input data
        '401':
          description: Authentication failed - missing or invalid API key
        '403':
          description: >-
            Permission denied - insufficient rights to update this company
            member
        '500':
          description: Internal server error
      security:
        - bearerAuth: []
components:
  schemas:
    PatchedUpdateCompanyMemberRequestSerializerV3:
      type: object
      properties:
        first_name:
          type: string
          description: The first name of the user.
        last_name:
          type: string
          description: The last name of the user.
        account_expiration_date:
          type: string
          format: date-time
          description: The account expiration date and time with timezone.
        language:
          allOf:
            - $ref: '#/components/schemas/Language782Enum'
          description: |-
            The preferred language of the user.

            * `ar` - Arabic
            * `en` - English
            * `fr` - French
            * `de` - German
    CompanyMemberResponse:
      type: object
      properties:
        id:
          type: integer
        username:
          type: string
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
        is_active:
          type: boolean
        date_joined:
          type: string
          format: date-time
        account_expiration_date:
          type: string
          format: date-time
        last_login:
          type: string
          format: date-time
        invitation_status:
          type: string
        language:
          type: string
        company:
          $ref: '#/components/schemas/CompanyMemberCompany'
        roles:
          type: array
          items:
            $ref: '#/components/schemas/TenantUserRole'
        groups:
          type: array
          items:
            $ref: '#/components/schemas/CompanyMemberGroups'
      required:
        - account_expiration_date
        - company
        - date_joined
        - email
        - first_name
        - groups
        - id
        - invitation_status
        - is_active
        - language
        - last_login
        - last_name
        - roles
        - username
    Language782Enum:
      enum:
        - ar
        - en
        - fr
        - de
      type: string
      description: |-
        * `ar` - Arabic
        * `en` - English
        * `fr` - French
        * `de` - German
    CompanyMemberCompany:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
    TenantUserRole:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
    CompanyMemberGroups:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        role:
          type: string
        category:
          type: string
        created_at:
          type: string
          format: date-time
      required:
        - category
        - created_at
        - description
        - id
        - name
        - role
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````