v1
latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MBKnowledge 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
Example request
{
"order": 1,
"text": "This is a paragraph from an article"
}Response
Returns KnowledgeChunk metadata object.
Example response
{
"order": 1,
"text": "This is a paragraph from an article",
"createdAt": 1694518620,
"lastChanged": 1694518620
}