v1

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

Create a Knowledge Chunk

Creates a Knowledge Chunk in a Knowledge Resource.

post/v2.0/knowledgestores/{knowledgeStoreId}/sources/{sourceId}/chunks

Path parameters

knowledgeStoreIdstring required

The Id of the KnowledgeStore

sourceIdstring required

The Id of the KnowledgeSource

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

Example request

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

Response

Returns KnowledgeChunk metadata object.

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

referenceIdstring uuid
_idstring
createdAtinteger

Unix-timestamp

lastChangedinteger

Unix-timestamp

createdBystring
lastChangedBystring

Example response

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