younifyd
Menu

Update Product Review

Update a product review

PUT/products/reviews/{reviewId}

Use it in a workflow

  1. Add a step and choose the WooCommerce connector.
  2. Pick the Update Product Review action (under Product reviews).
  3. Fill in the fields below, then reference the result from later steps as {{updateProductReview.response.data}}.

Request

Path parameters

reviewIdintegerrequired

Request body

Enter the body as JSON in the step's Body field.

idinteger

Unique identifier for the resource.

date_createdstring (date-time)

The date the review was created, in the site's timezone.

date_created_gmtstring (date-time)

The date the review was created, as GMT.

product_idinteger

Unique identifier for the product that the review belongs to.

statusstring

Status of the review.

One ofapprovedholdspamunspamtrashuntrashDefault "approved"

reviewerstring

Reviewer name.

reviewer_emailstring (email)

Reviewer email.

reviewstring

The content of the review.

ratinginteger

Review rating (0 to 5).

verifiedboolean

Shows if the reviewer bought the product or not.

json
{
  "id": 0,
  "date_created": "2025-01-01T00:00:00Z",
  "date_created_gmt": "2025-01-01T00:00:00Z",
  "product_id": 0,
  "status": "approved",
  "reviewer": "string",
  "reviewer_email": "name@example.com",
  "review": "string",
  "rating": 0,
  "verified": false
}

Response

Returns 200 with an object. Read it in later steps with {{updateProductReview.response.data.<field>}}.

idinteger

Unique identifier for the resource.

date_createdstring (date-time)

The date the review was created, in the site's timezone.

date_created_gmtstring (date-time)

The date the review was created, as GMT.

product_idinteger

Unique identifier for the product that the review belongs to.

statusstring

Status of the review.

One ofapprovedholdspamunspamtrashuntrashDefault "approved"

reviewerstring

Reviewer name.

reviewer_emailstring (email)

Reviewer email.

reviewstring

The content of the review.

ratinginteger

Review rating (0 to 5).

verifiedboolean

Shows if the reviewer bought the product or not.

json
{
  "id": 0,
  "date_created": "2025-01-01T00:00:00Z",
  "date_created_gmt": "2025-01-01T00:00:00Z",
  "product_id": 0,
  "status": "approved",
  "reviewer": "string",
  "reviewer_email": "name@example.com",
  "review": "string",
  "rating": 0,
  "verified": false
}

Need more? See the WooCommerce guide for connection setup and behaviour shared by every action.

Update Product Review — WooCommerce — Documentation