Shopware icon

Shopware

Shopware

Actions778

Product Review → Update Product Review

AI-generated

Overview

This node operation updates an existing product review in the Shopware system. It allows users to modify details such as the review's title, content, points, status, and associated metadata like product, customer, sales channel, and language information. This operation is useful for managing customer feedback, correcting or enhancing review data, and maintaining up-to-date product review records in an e-commerce environment.

Use Case Examples

  1. Updating the content and rating points of a product review after a customer provides additional feedback.
  2. Changing the status of a product review to approved or disapproved based on moderation.
  3. Modifying the associated product or customer details in a product review record.

Properties

Name Meaning
Id Identifier for the product_review, required to specify which review to update.
Response Data format for response, used as a query parameter to specify the response format.
Product Id Identifier of the product associated with the review.
Product Version Id Version identifier of the product.
Customer Id Identifier of the customer who wrote the review.
Sales Channel Id Identifier of the sales channel where the review is posted.
Language Id Identifier of the language used in the review.
External User External user identifier if applicable.
External Email External email address if applicable.
Title Title of the product review.
Content Content or body text of the product review.
Points Rating points given in the review.
Status Boolean status indicating if the review is active or not.
Comment Additional comment related to the review.
Custom Fields Custom fields in JSON format for additional data.
Created At Timestamp when the review was created.
Updated At Timestamp when the review was last updated.
Product Detailed JSON object representing the product associated with the review.
Customer Detailed JSON object representing the customer who wrote the review.
Sales Channel Detailed JSON object representing the sales channel.
Language Detailed JSON object representing the language.

Output

JSON

  • id - Identifier of the updated product review.
  • productId - Identifier of the product associated with the review.
  • productVersionId - Version identifier of the product.
  • customerId - Identifier of the customer who wrote the review.
  • salesChannelId - Identifier of the sales channel where the review is posted.
  • languageId - Identifier of the language used in the review.
  • externalUser - External user identifier if applicable.
  • externalEmail - External email address if applicable.
  • title - Title of the product review.
  • content - Content or body text of the product review.
  • points - Rating points given in the review.
  • status - Boolean status indicating if the review is active or not.
  • comment - Additional comment related to the review.
  • customFields - Custom fields in JSON format for additional data.
  • createdAt - Timestamp when the review was created.
  • updatedAt - Timestamp when the review was last updated.
  • product - Detailed JSON object representing the product associated with the review.
  • customer - Detailed JSON object representing the customer who wrote the review.
  • salesChannel - Detailed JSON object representing the sales channel.
  • language - Detailed JSON object representing the language.

Dependencies

  • an API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Product Id, Sales Channel Id, Language Id, Title, Content) are provided to avoid validation errors.
  • Check the API key credential and base URL configuration to ensure proper authentication and connectivity to the Shopware Admin API.
  • If the response format is not as expected, verify the _response query parameter and adjust accordingly.

Discussion