younifyd
Menu

Batch Update Product Reviews

Batch update product reviews

POST/products/reviews/batch

Use it in a workflow

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

Request

Request body

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

createarray<object>
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.

updatearray<object>
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.

deletearray<integer>
json
{
  "create": [
    {
      "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
    }
  ],
  "update": [
    {
      "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
    }
  ],
  "delete": [
    0
  ]
}

Response

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

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