put https://app.ecwid.com/api/v3//reviews/mass_update
Access scopes
Requires the following access scope: read_reviews
Headers
The Authorization header with a secret access token is required.
Header | Format | Description |
---|---|---|
Authorization | Bearer secret_ab***cd | Access token of the application. |
Request
Request body contains a JSON object with the following fields:
Field | Type | Description |
---|---|---|
delete | boolean | Defines if selected reviews will be deleted. Set true to delete reviews. Required |
newStatus | string | New review status. One of:moderated - review is sent by a customer but not yet published.published - review is published. |
selectMode | string | Review selection mode for the update. Must be one of: - "SELECTED" - Only update reviews from reviewIds array.- "ALL_FILTERED" - Only update reviews found by criteria in currentFilters object.- "ALL" - Update all reviews in the store.Required |
reviewIds | array of numbers | List of review IDs for the update. |
currentFilters | object currentFilters | ID of the reviewed product. |
currentFilters
Field | Type | Description |
---|---|---|
rating | boolean | Defines if selected reviews will be deleted. Set true to delete reviews. Required |
newStatus | string | New review status. One of:moderated - review is sent by a customer but not yet published.published - review is published. |
selectMode | string | Review selection mode for the update. Must be one of: - "SELECTED" - Only update reviews from reviewIds array.- "ALL_FILTERED" - Only update reviews found by criteria in currentFilters object.- "ALL" - Update all reviews in the store.Required |
reviewIds | array of numbers | List of review IDs for the update. |
currentFilters | object currentFilters | ID of the reviewed product. |