commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Inventory → Update InventoryEntry by Key

AI-generated

Summary

Update an InventoryEntry in commercetools by specifying its unique inventory key and current version, applying one or more update actions to modify its properties.

Inputs

  • Inventory Key (required) — The unique key identifying the InventoryEntry to update.
  • Version (required) — The current version number of the InventoryEntry, required for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply, which overrides the Actions (UI) input if provided.
  • Actions (UI) — A UI-friendly collection of update actions such as AddQuantity, ChangeQuantity, SetCustomField, SetExpectedDelivery, and others to apply to the InventoryEntry.

Output shape

a single JSON object representing the updated InventoryEntry.

The output contains all fields representing the InventoryEntry after applying the specified update actions. The input Inventory Key and Version are mandatory to ensure correct targeting and concurrency safety. Errors are thrown if the version is incorrect or the entry does not exist.

Links

Discussion