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

> Retries the indexing process for a specific knowledge base source that failed during its initial processing. Provide the source type and its unique ID to re-trigger vectorization.  **Supported source

# Retry Knowledge Base Source Indexing

For the complete error reference, see [Error Guide](/rest-api/ai-agents-apis/error-codes).


## OpenAPI

````yaml patch /ai-agents/agent-builder/knowledge-base/{sourceType}/{uniqueId}/sync
openapi: 3.0.0
info:
  title: AI Agents APIs
  description: API reference for CometChat AI Agents service
  version: '1.0'
servers:
  - url: https://{appId}.api-{region}.cometchat.io/v3
    variables:
      appId:
        default: appId
        description: (Required) App ID
      region:
        enum:
          - us
          - eu
          - in
        default: us
        description: Select Region
security: []
tags:
  - name: ai-agent
    description: ''
paths:
  /ai-agents/agent-builder/knowledge-base/{sourceType}/{uniqueId}/sync:
    patch:
      tags:
        - knowledge-base
      summary: Retry Knowledge Base Source Indexing
      description: >-
        Retries the indexing process for a specific knowledge base source that
        failed during its initial processing. Provide the source type and its
        unique ID to re-trigger vectorization.


        **Supported source types:** `uploads`, `text`, `website`.
      operationId: RagController_revectorizeSource
      parameters:
        - name: sourceType
          required: true
          in: path
          description: Source type (uploads, text, website)
          schema:
            enum:
              - uploads
              - text
              - website
            type: string
        - name: uniqueId
          required: true
          in: path
          description: Unique source ID to sync
          schema:
            type: string
      responses:
        '200':
          description: Revectorization triggered successfully.
          content:
            application/json:
              schema:
                type: object
              example:
                success: true
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key (i.e. Rest API Key from the Dashboard).
      name: apikey
      in: header

````