@wildix/wim-knowledge-base-client > GetKnowledgeBaseCommand
GetKnowledgeBaseCommand class
Get a knowledge base by its ID
Signature:
export declare class GetKnowledgeBaseCommand extends GetKnowledgeBaseCommand_base
Extends: GetKnowledgeBaseCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, GetKnowledgeBaseCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, GetKnowledgeBaseCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // GetKnowledgeBaseInput
companyId: "STRING_VALUE",
knowledgeBaseId: "STRING_VALUE", // required
};
const command = new GetKnowledgeBaseCommand(input);
const response = await client.send(command);
// { // GetKnowledgeBaseOutput
// knowledgeBase: { // KnowledgeBaseItem
// name: "STRING_VALUE", // required
// description: "STRING_VALUE",
// dataSources: [ // DataSourceIdsList // required
// "STRING_VALUE",
// ],
// id: "STRING_VALUE", // required
// companyId: "STRING_VALUE", // required
// createdAt: "STRING_VALUE", // required
// updatedAt: "STRING_VALUE", // required
// },
// };