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

# Update Knowledge Base Config Endpoint

> Update an existing knowledge base configuration.



## OpenAPI

````yaml /api-reference/openapi/EvoAI-Knowledge-Service/knowledge-base-configs.yaml put /api/v1/knowledge-base-configs/{config_id}
openapi: 3.1.0
info:
  title: Evolution Foundation - Knowledge Service - Knowledge Base Configs
  description: Knowledge base and memory management
  version: 1.0.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3005
    description: Development server
    variables:
      port:
        default: '3005'
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/knowledge-base-configs/{config_id}:
    put:
      summary: Update Knowledge Base Config Endpoint
      description: Update an existing knowledge base configuration.
      operationId: >-
        update_knowledge_base_config_endpoint_api_v1_knowledge_base_configs__config_id__put
      parameters:
        - name: config_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Config Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseConfigUpdate'
      responses:
        '200':
          description: Knowledge base configuration updated successfully
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuccessResponse_KnowledgeBaseConfigResponse_
        '400':
          description: Bad Request (invalid data)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Invalid input data
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs/{config_id}
                  method: PUT
        '401':
          description: Unauthorized (invalid or missing token)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid or missing authentication token
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs/{config_id}
                  method: PUT
        '403':
          description: Forbidden (insufficient permissions)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: Insufficient permissions to perform this action
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs/{config_id}
                  method: PUT
        '404':
          description: Not Found (resource not found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: Knowledge base configuration not found
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs/{config_id}
                  method: PUT
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error (server error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: An unexpected error occurred
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs/{config_id}
                  method: PUT
components:
  schemas:
    KnowledgeBaseConfigUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
          description: Friendly name
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
          description: Whether the configuration is active
        is_default:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Default
          description: Whether this is the default configuration
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config
          description: Provider-specific configuration
      type: object
      title: KnowledgeBaseConfigUpdate
      description: Schema for updating a knowledge base configuration
    SuccessResponse_KnowledgeBaseConfigResponse_:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: true
        data:
          $ref: 1de28bb1-e293-4fea-90de-4a57b66da1a7
          description: Response payload
        meta:
          $ref: 600c95d2-0d7a-4054-b678-1b7eb44e999d
          description: Metadata
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Optional success message
      type: object
      required:
        - data
        - meta
      title: SuccessResponse[KnowledgeBaseConfigResponse]
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: false
        error: de7aff3a-baa1-434f-b4a8-98b611d37355
        meta:
          $ref: 4b6e66dc-476d-4342-a415-f132de0fb1ea
          description: Metadata
      type: object
      required:
        - error
        - meta
      title: ErrorResponse
      description: |-
        Standard error response schema matching error_response() return format.

        This schema matches the structure returned by error_response() function,
        which always uses ErrorInfo for the error field.
    HTTPValidationError:
      properties:
        detail:
          items: afb4ecf3-1404-4a62-b44b-ced1dc220f44
          type: array
          title: Detail
      type: object
      title: HTTPValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.