v1

latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MB
Knowledge Chunks

Update a Knowledge Chunk

Updates a Knowledge Chunk in a Knowledge Source. Allows modifying the Chunk's text, data, order, and status.

patch/v2.0/knowledgestores/{knowledgeStoreId}/sources/{sourceId}/chunks/{chunkId}

Path parameters

knowledgeStoreIdstring required

The Id of the KnowledgeStore

sourceIdstring required

The Id of the KnowledgeSource

chunkIdstring required

The Id of the KnowledgeChunk

Headers

Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Request body

ordernumber

The name of the KnowledgeChunk

textstring

The text that is the actual content of the chunk

dataobject

The extended data of KnowledgeChunk

disabledfalse | true

The status to check if knowledge chunk is disabled

Example request

{
  "order": 1,
  "text": "This is a paragraph from an article"
}

Response

Successfully updated knowledge source