Skip to main content

updateViewTemplate

client.knowledgeGraph.updateViewTemplate(id: string, data: UpdateKGViewTemplateRequest): Promise<KGViewTemplate>

Updates a view template.

Modifies the template's query definition or metadata. Existing views created from this template are not automatically updated.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the view template to update
dataUpdateKGViewTemplateRequestYesThe fields to update

Returns​

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

Example​

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

const client = new CodeBoltClient();

const result = await client.knowledgeGraph.updateViewTemplate('id', /* UpdateKGViewTemplateRequest */);
console.log(result);