Skip to main content

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

UpdateKnowledgeBaseCommand class

Update a knowledge base by its ID

Signature:

export declare class UpdateKnowledgeBaseCommand extends UpdateKnowledgeBaseCommand_base 

Extends: UpdateKnowledgeBaseCommand_base

Example

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

import { KnowledgeBaseClient, UpdateKnowledgeBaseCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, UpdateKnowledgeBaseCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // UpdateKnowledgeBaseInput
name: "STRING_VALUE", // required
description: "STRING_VALUE",
dataSources: [ // DataSourceIdsList // required
"STRING_VALUE",
],
companyId: "STRING_VALUE",
knowledgeBaseId: "STRING_VALUE", // required
};
const command = new UpdateKnowledgeBaseCommand(input);
const response = await client.send(command);
// { // UpdateKnowledgeBaseOutput
// 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
// },
// };