commercetools icon

commercetools

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

Actions671

Product → Update Product by ID

AI-generated

Summary

Update a product by its ID in commercetools by specifying the product's version and applying a set of update actions either as raw JSON or via UI-configured actions.

Inputs

  • Product ID (required) — The unique identifier of the product to update.
  • Version (required) — The current version of the product, used for optimistic concurrency control.
  • Actions (JSON) — Raw JSON array of update actions to apply to the product; overrides UI actions if provided.
  • Actions (UI) — A collection of update actions configured through the UI, supporting multiple updates like adding assets, changing names, prices, variants, categories, and more.

Output shape

a single JSON object representing the updated product data returned by the commercetools API

The output reflects the product's new state after applying the updates. If the update fails, an error is thrown unless 'continue on fail' is enabled, in which case error information is output instead.

Links

Discussion