commercetools icon

commercetools

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

Actions671

Product-type → Update ProductType by Key

AI-generated

Summary

Update a commercetools ProductType entity identified by its unique key, specifying the current version and a set of update actions to modify its attributes or metadata.

Inputs

  • Product-type Key (required) — The unique key of the ProductType to update.
  • Version (required) — The current version number of the ProductType used for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions that fully specifies modifications to be applied to the ProductType; if provided and not empty, it overrides the Actions (UI).
  • Actions (UI) — A user-friendly interface to add one or multiple update actions to modify the ProductType, such as adding attributes, changing names, labels, or order of attributes, each with its own parameters.

Output shape

a single updated ProductType object as returned from the commercetools API

The operation sends update actions along with the ProductType key and version to the commercetools API and returns the updated ProductType JSON. Errors are returned if the version is outdated or the key is not found.

Links

Discussion