Create a product review

Creates a new review for a specified product.

post/products/{product_id}/reviews

Request

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

Path parameters

product_idinteger required

The unique identifier of the product.

Request body

namestring required

The name of the customer who added the review.

contentstring required

The content of the review.

ratinginteger required

The review rating (between 1 and 5).

activeboolean

Indicates whether the review should be displayed.

Response

Product review created 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.