Skip to main content

updateCollection

client.knowledge.updateCollection(id: string, data: UpdateKnowledgeCollectionRequest): Promise<KnowledgeCollection>

Updates a knowledge collection's properties.

Modifies collection settings such as name, description, or chunking configuration.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the collection to update
dataUpdateKnowledgeCollectionRequestYesThe fields to update

Returns

Promise<KnowledgeCollection> — A promise that resolves to the updated

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.knowledge.updateCollection('id', /* UpdateKnowledgeCollectionRequest */);
console.log(result);