Skip to main content

@wildix/wim-cache-client > BatchWriteIntegrationDataCommand

BatchWriteIntegrationDataCommand class

Batch writes and deletes integration data in a single request

Signature:

export declare class BatchWriteIntegrationDataCommand extends BatchWriteIntegrationDataCommand_base 

Extends: BatchWriteIntegrationDataCommand_base

Example

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

import { WimCacheClient, BatchWriteIntegrationDataCommand } from "@wildix/wim-cache-client"; // ES Modules import
// const { WimCacheClient, BatchWriteIntegrationDataCommand } = require("@wildix/wim-cache-client"); // CommonJS import
const client = new WimCacheClient(config);
const input = { // BatchWriteIntegrationDataInput
putItems: [ // IntegrationDataItemWithIdList
{ // IntegrationDataItemWithId
type: "STRING_VALUE", // required
data: "DOCUMENT_VALUE", // required
id: "STRING_VALUE", // required
},
],
deleteItems: [ // IntegrationDataKeyList
{ // IntegrationDataKey
id: "STRING_VALUE", // required
type: "STRING_VALUE",
},
],
integrationId: "STRING_VALUE", // required
companyId: "STRING_VALUE",
};
const command = new BatchWriteIntegrationDataCommand(input);
const response = await client.send(command);
// {};