Skip to main content

@wildix/wim-knowledge-base-client > ListKnowledgeBasesCommand

ListKnowledgeBasesCommand class

List all knowledge bases for the current company

Signature:

export declare class ListKnowledgeBasesCommand extends ListKnowledgeBasesCommand_base 

Extends: ListKnowledgeBasesCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { KnowledgeBaseClient, ListKnowledgeBasesCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, ListKnowledgeBasesCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // ListKnowledgeBasesInput
companyId: "STRING_VALUE",
};
const command = new ListKnowledgeBasesCommand(input);
const response = await client.send(command);
// { // ListKnowledgeBasesOutput
// knowledgeBases: [ // KnowledgeBaseList // required
// { // 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
// },
// ],
// };