Update a product review

Updates an existing product review.

put/products/{product_id}/reviews/{id}

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/products/{product_id}/reviews/{id}
  • Auth
    HTTP basic

Path parameters

product_idinteger required

The unique identifier of the product.

idinteger required

The unique identifier of the review.

Query parameters

fieldsstring

Comma-separated list of fields to include in the response.

Request body

namestring

Updated name of the customer who added the review.

contentstring

Updated content of the review.

ratinginteger

Updated review rating (between 1 and 5).

activeboolean

Indicates whether the review should be displayed.

Response

Product review updated successfully.

idinteger

Unique identifier for the product review.

createdAtstring date-time

Timestamp when the review was created.

namestring

The name of the customer who added the review.

contentstring

The content of the review.

ratinginteger

The review rating (between 1 and 5).

activeboolean

Indicates whether the review is displayed.

Changes

No recorded changes to this operation across all 1 revision of this API.