commercetools icon

commercetools

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

Actions671

Product-type → Update ProductType by ID

AI-generated

Summary

Update an existing ProductType in commercetools by specifying its ID, current version, and a set of update actions.

Inputs

  • Product-type ID (required) — The unique identifier of the ProductType to update.
  • Version (required) — The current version number of the ProductType to ensure concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the ProductType. This input overrides Actions (UI) if provided.
  • Actions (UI) — A user-friendly interface to add multiple predefined update actions, such as adding attribute definitions or changing attribute names. This is ignored if Actions (JSON) is not empty.

Output shape

a single updated ProductType record in JSON format

The output contains the full updated ProductType object returned from the commercetools API. Errors during update will throw exceptions unless 'Continue On Fail' is enabled, in which case error details are returned per item.

Links

Discussion