commercetools icon

commercetools

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

Actions671

Product Selection → Update ProductSelection by Key

AI-generated

Summary

Update a commercetools Product Selection identified by its unique key with specified modifications.

Inputs

  • Product Selection Key (required) — The unique key of the Product Selection to update.
  • Version (required) — The current version of the Product Selection to ensure update consistency.
  • Actions (JSON) — A raw JSON array of update actions to be applied to the Product Selection, overriding the UI actions if provided.
  • Actions (UI) — A collection of predefined update actions such as adding or removing products, changing the name, setting custom fields, keys, variant exclusions/selections which will be converted into update actions.

Output shape

a single JSON object representing the updated Product Selection as returned from the commercetools API

Requires the correct current version to prevent update conflicts. Actions can be provided either as raw JSON or through the UI; raw JSON takes precedence when present. Errors during the update will throw or can be caught if 'Continue On Fail' mode is enabled.

Links

Discussion