@wildix/wim-cache-client > UpdateEntitiesWeightCommand
UpdateEntitiesWeightCommand class
Allows for batch updating the weight property of multiple entities
Signature:
export declare class UpdateEntitiesWeightCommand extends UpdateEntitiesWeightCommand_base
Extends: UpdateEntitiesWeightCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WimCacheClient, UpdateEntitiesWeightCommand } from "@wildix/wim-cache-client"; // ES Modules import
// const { WimCacheClient, UpdateEntitiesWeightCommand } = require("@wildix/wim-cache-client"); // CommonJS import
const client = new WimCacheClient(config);
const input = { // UpdateEntitiesWeightInput
organizationId: "STRING_VALUE", // required
entityIds: [ // EntityIds // required
"STRING_VALUE",
],
};
const command = new UpdateEntitiesWeightCommand(input);
const response = await client.send(command);
// { // UpdateEntitiesWeightOutput
// success: true || false, // required
// };