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

# update knowledge group

> Update a knowledge folder



## OpenAPI

````yaml https://api.anam.ai/swagger.json put /v1/knowledge/groups/{id}
openapi: 3.1.0
info:
  title: Anam AI API
  version: '1.0'
servers:
  - url: https://api.anam.ai
    description: Anam API
security:
  - BearerAuth: []
tags:
  - name: Sessions
  - name: Avatar Videos
  - name: Meetings
  - name: Personas
  - name: Avatars
  - name: Voices
  - name: Pronunciation Dictionaries
  - name: LLMs
  - name: Knowledge
  - name: Tools
  - name: Share Links
  - name: Engine
paths:
  /v1/knowledge/groups/{id}:
    put:
      tags:
        - Knowledge
      summary: update knowledge group
      description: Update a knowledge folder
      operationId: updateKnowledgeGroup
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: Knowledge folder ID, from `GET /v1/knowledge/groups`
      requestBody:
        description: >-
          Fields to update on the knowledge group. Omit a field to leave it
          unchanged.
        required: true
        content:
          application/json:
            examples:
              default:
                $ref: '#/components/examples/KnowledgeGroupUpdate'
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                chunkSize:
                  type:
                    - integer
                    - 'null'
                  minimum: 100
                  maximum: 2000
                  description: >-
                    Default maximum tokens per chunk for this folder's
                    documents; null resets it to 350. Existing documents keep
                    their chunks until they are next processed or revectorised.
                chunkOverlap:
                  type:
                    - integer
                    - 'null'
                  minimum: 0
                  maximum: 1000
                  description: >-
                    Default token overlap between chunks, at most half of
                    `chunkSize` (175 without one); null resets it to 0. Existing
                    documents keep their chunks until they are next processed or
                    revectorised.
      responses:
        '200':
          description: Successfully updated knowledge folder
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeGroup'
              examples:
                default:
                  $ref: '#/components/examples/KnowledgeGroupResponse'
        '400':
          description: Bad request - Invalid data
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: Forbidden - API key lacks the required permission
        '404':
          description: Knowledge folder not found
        '409':
          description: >-
            Conflict - the group's chunk settings changed while this update was
            being applied. Retry the request.
        '500':
          description: Server error
        '503':
          description: >-
            The API key could not be checked because of a temporary server
            problem. The key may be valid; retry after `Retry-After` seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableError'
components:
  examples:
    KnowledgeGroupUpdate:
      summary: Rename a knowledge group
      value:
        name: Customer support
    KnowledgeGroupResponse:
      summary: A single knowledge group
      value:
        id: 00000000-0000-0000-0000-000000000000
        name: Product docs
        description: Help-centre articles and API reference.
        documentCount: 12
        chunkSize: 800
        chunkOverlap: 100
        createdAt: '2026-04-20T10:00:00.000Z'
        updatedAt: '2026-04-20T10:00:00.000Z'
  schemas:
    KnowledgeGroup:
      type: object
      description: A folder of documents that a persona can search via RAG tools.
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the knowledge group.
        name:
          type: string
          description: Human-readable name for the group.
        description:
          type:
            - string
            - 'null'
          description: Free-form description of what the group contains.
        documentCount:
          type: integer
          description: Number of non-deleted documents currently in the group.
        chunkSize:
          type:
            - integer
            - 'null'
          description: >-
            Default maximum tokens per chunk for documents in this group. Null
            means documents use the default of 350.
        chunkOverlap:
          type:
            - integer
            - 'null'
          description: >-
            Default token overlap for documents in this group. Null means
            documents use the default of 0.
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the group was created.
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the group was last updated.
    ServiceUnavailableError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          example: Service temporarily unavailable
        message:
          type: string
          example: We could not check your API key. Please retry shortly.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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