@wildix/wim-knowledge-base-client > StartSyncDataSourceCommand
StartSyncDataSourceCommand class
Start the sync of a data source by its ID
Signature:
export declare class StartSyncDataSourceCommand extends StartSyncDataSourceCommand_base
Extends: StartSyncDataSourceCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, StartSyncDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, StartSyncDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // StartSyncDataSourceInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
syncType: "full" || "incremental",
};
const command = new StartSyncDataSourceCommand(input);
const response = await client.send(command);
// {};