commercetools icon

commercetools

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

Actions671

Review → Update Review by ID

AI-generated

Summary

Update a commercetools Review by specifying its ID, current version, and desired update actions to modify fields such as author name, rating, text, and custom fields.

Inputs

  • Review ID (required) — The unique identifier of the Review to update.
  • Version (required) — The current version number of the Review to ensure update concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the Review. If provided, this overrides the UI-based actions.
  • Actions (UI) — One or multiple structured update actions selected and configured via the UI, such as setting author name, rating, text, custom fields, and transitioning state.

Output shape

a single Review object representing the updated Review after applying the specified changes

The update requires the Review ID and version for concurrency. The update actions can be provided either as raw JSON or through the UI collection; when JSON is given and non-empty, it overrides the UI actions. The response contains the updated Review data from commercetools.

Examples

Example 1: Update review rating and text by ID

Provide the Review ID and current version, then set 'Rating' to a new number and 'Text' to new review content in the Actions (UI) or pass equivalent JSON actions.

Links

Discussion