commercetools icon

commercetools

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

Actions671

Product Selection → Update ProductSelection by ID

AI-generated

Summary

Update an existing Product Selection in commercetools by specifying its ID and current version, applying one or more update actions to modify its properties.

Inputs

  • Product Selection ID (required) — The unique identifier of the Product Selection to update.
  • Version (required) — The current version number of the Product Selection resource, used for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply, which overrides the UI-based actions if provided.
  • Actions (UI) — One or more update actions specified using predefined UI fields such as adding/removing products, changing name, setting custom fields or types, setting keys, and managing variant selections or exclusions.

Output shape

a single JSON object representing the updated Product Selection

The operation requires the resource ID and version to be provided for optimistic locking. Update actions can be provided either as raw JSON or via the UI options; raw JSON takes precedence if not empty. On success, the response contains the updated Product Selection data from commercetools API.

Examples

Example 1: Update the name of a Product Selection by ID

Provide the Product Selection ID and version number, then use the ChangeName action in UI or Actions (JSON) to specify the new localized name.

Links

Discussion