import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const knowledgeBase = await client.knowledgeBases.update('knowledge_base_id');
console.log(knowledgeBase.knowledge_base_name);
{
"knowledge_base_name": "<string>",
"metadata": {}
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const knowledgeBase = await client.knowledgeBases.update('knowledge_base_id');
console.log(knowledgeBase.knowledge_base_name);
{
"knowledge_base_name": "<string>",
"metadata": {}
}
Successful Response
The response is of type object
.