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

# Update chunking override

> Set or clear the RAG chunking override for a document or folder.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/convai/knowledge-base/{documentation_id}/chunking-override
openapi: 3.1.0
info:
  title: Threetone API
  description: >-
    APIs for the Threetone Agents Platform and shared workspace resources.
    Authenticate programmatic requests with an API key in the x-api-key header.
  version: '1.0'
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/convai/knowledge-base/{documentation_id}/chunking-override:
    patch:
      tags:
        - Agents Platform
      summary: Update chunking override
      description: Set or clear the RAG chunking override for a document or folder.
      operationId: update_chunking_override_route
      parameters:
        - name: documentation_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              The id of a document from the knowledge base. This is returned on
              document addition.
            examples:
              - 21m00Tcm4TlvDq8ikWAM
            embed: true
            title: Documentation Id
          description: >-
            The id of a document from the knowledge base. This is returned on
            document addition.
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Your API key for programmatic access. Send it in the x-api-key
              header; you can create and manage keys from the Developers page.
            title: X-Api-Key
          description: >-
            Your API key for programmatic access. Send it in the x-api-key
            header; you can create and manage keys from the Developers page.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDocumentChunkingOverrideRequestModel'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/UpdateDocumentChunkingOverrideResponseModel
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateDocumentChunkingOverrideRequestModel:
      properties:
        chunking_override:
          anyOf:
            - $ref: '#/components/schemas/ChunkingOverrideRequestModel'
            - type: 'null'
          description: >-
            RAG chunking override for a document or folder. Null clears the
            override so ancestors and embedding model defaults apply.
      type: object
      required:
        - chunking_override
      title: UpdateDocumentChunkingOverrideRequestModel
    UpdateDocumentChunkingOverrideResponseModel:
      properties:
        id:
          type: string
          title: Id
          description: ID of the document or folder whose chunking override was updated.
        chunking_override:
          anyOf:
            - $ref: '#/components/schemas/ChunkingOverride'
            - type: 'null'
          description: >-
            The resulting chunking override. Null means the entity inherits from
            ancestors or the embedding model default.
        reindex_queued:
          type: boolean
          title: Reindex Queued
          description: >-
            Whether the effective configuration changed and background
            reindexing was queued.
      type: object
      required:
        - id
        - chunking_override
        - reindex_queued
      title: UpdateDocumentChunkingOverrideResponseModel
      example:
        chunking_override:
          custom_separators:
            - |-

              ## 
          max_chunk_size: 800
          overlap_percentage: 10
        id: 21m00Tcm4TlvDq8ikWAM
        reindex_queued: true
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ChunkingOverrideRequestModel:
      properties:
        max_chunk_size:
          anyOf:
            - type: integer
              minimum: 200
            - type: 'null'
          title: Max Chunk Size
          description: >-
            Maximum chunk size in tokens. Null inherits from ancestors or the
            embedding model default.
        overlap_percentage:
          anyOf:
            - type: integer
              maximum: 25
              minimum: 0
            - type: 'null'
          title: Overlap Percentage
          description: >-
            Chunk overlap as a percentage of the final chunk size, applied after
            the chunk size is clamped to the embedding model. Null inherits from
            ancestors or the embedding model default.
        custom_separators:
          anyOf:
            - items:
                type: string
                maxLength: 100
                minLength: 1
              type: array
              maxItems: 5
            - type: 'null'
          title: Custom Separators
          description: >-
            Custom text separators used when splitting. Null inherits from
            ancestors; an empty list clears inherited separators.
      type: object
      title: ChunkingOverrideRequestModel
    ChunkingOverride:
      properties:
        max_chunk_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Chunk Size
          description: Maximum chunk size in tokens. Null uses the inherited value.
        overlap_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Overlap Percentage
          description: >-
            Chunk overlap as a percentage of the chunk size. Null uses the
            inherited value.
        custom_separators:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Custom Separators
          description: >-
            Custom text separators used when splitting. Null uses the inherited
            value.
      type: object
      required:
        - max_chunk_size
        - overlap_percentage
        - custom_separators
      title: ChunkingOverride
    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

````

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