@wildix/wim-knowledge-base-client > CloneDataSourceCommand
CloneDataSourceCommand class
Clone a data source by its ID. Only configuration will be cloned, not the data.
Signature:
export declare class CloneDataSourceCommand extends CloneDataSourceCommand_base
Extends: CloneDataSourceCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, CloneDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, CloneDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // CloneDataSourceInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
};
const command = new CloneDataSourceCommand(input);
const response = await client.send(command);
// { // CloneDataSourceOutput
// dataSourceId: "STRING_VALUE", // required
// };