Skip to main content

getInstanceTemplate

client.knowledgeGraph.getInstanceTemplate(id: string): Promise<KGInstanceTemplate>

Retrieves a specific knowledge graph instance template by its ID.

Returns the full template definition including its schema, node types, and edge constraints.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the instance template

Returns

Promise<KGInstanceTemplate> — A promise that resolves to the

Example

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

const client = new CodeBoltClient();

const result = await client.knowledgeGraph.getInstanceTemplate('id');
console.log(result);