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

# Update Connector Files

> Update files in a connector by adding new files and/or removing existing ones.
This is an atomic operation that validates, updates the connector config, and triggers indexing.



## OpenAPI

````yaml POST /manage/admin/connector/{connector_id}/files/update
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /manage/admin/connector/{connector_id}/files/update:
    post:
      tags:
        - public
      summary: Update Connector Files
      description: >-
        Update files in a connector by adding new files and/or removing existing
        ones.

        This is an atomic operation that validates, updates the connector
        config, and triggers indexing.
      operationId: update_connector_files
      parameters:
        - name: connector_id
          in: path
          required: true
          schema:
            type: integer
            title: Connector Id
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_update_connector_files_manage_admin_connector__connector_id__files_update_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    Body_update_connector_files_manage_admin_connector__connector_id__files_update_post:
      properties:
        files:
          anyOf:
            - items:
                type: string
                format: binary
              type: array
            - type: 'null'
          title: Files
        file_ids_to_remove:
          type: string
          title: File Ids To Remove
          default: '[]'
      type: object
      title: >-
        Body_update_connector_files_manage_admin_connector__connector_id__files_update_post
    FileUploadResponse:
      properties:
        file_paths:
          items:
            type: string
          type: array
          title: File Paths
        file_names:
          items:
            type: string
          type: array
          title: File Names
        zip_metadata:
          additionalProperties: true
          type: object
          title: Zip Metadata
      type: object
      required:
        - file_paths
        - file_names
        - zip_metadata
      title: FileUploadResponse
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````