commercetools icon

commercetools

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

Actions671

Type → Update Type by Key

AI-generated

Summary

Update a commercetools Type identified by its unique key by providing the current version number and a list of update actions to apply to the Type.

Inputs

  • Type Key (required) — The unique key identifying the Type to update.
  • Version (required) — The current version number of the Type to update, used for concurrency control.
  • Actions (UI) — A collection of update actions defined through the UI to change various aspects of the Type, such as adding field definitions or changing labels.
  • Actions (JSON) — A raw JSON array of update actions that overrides the UI-defined actions if provided.

Output shape

a single record representing the updated Type resource in JSON format

The update applies the specified actions atomically and returns the updated Type. The operation requires the correct current version to avoid conflicts. Errors for version mismatches or invalid updates will be thrown.

Links

Discussion