@wildix/wim-cache-client > PutIntegrationDataCommand
PutIntegrationDataCommand class
Batch upsert operation for storing integration data records in the cache
Signature:
export declare class PutIntegrationDataCommand extends PutIntegrationDataCommand_base
Extends: PutIntegrationDataCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WimCacheClient, PutIntegrationDataCommand } from "@wildix/wim-cache-client"; // ES Modules import
// const { WimCacheClient, PutIntegrationDataCommand } = require("@wildix/wim-cache-client"); // CommonJS import
const client = new WimCacheClient(config);
const input = { // PutIntegrationDataInput
items: [ // IntegrationDataItemWithIdList // required
{ // IntegrationDataItemWithId
type: "STRING_VALUE", // required
data: "DOCUMENT_VALUE", // required
id: "STRING_VALUE", // required
},
],
companyId: "STRING_VALUE",
integrationId: "STRING_VALUE", // required
};
const command = new PutIntegrationDataCommand(input);
const response = await client.send(command);
// {};