post https://developers.yotpo.com/v2/<store_id>/moderation/reviews
This API allows you to publish or reject one or multiple reviews to the onsite widgets.
Field | Data Type | Is it mandatory? | Description |
---|---|---|---|
store_id | String | Yes | Store id/app key of the merchant |
review_action | String | Yes Allowed values: "publish", "unpublish" | The action to perform on the reviews. |
review_ids | Array of integers | Yes | An array of review IDs to be published or unpublished. |
admin_email | String | No | The email address of the admin initiating the action. It will be visible in moderation audit log |
admin_display_name | String | No | The display name of the admin initiating the action. It will be visible in moderation audit log |
reason | String | No Needed for unpublish review_action | Reason of unpublish review_action |