TanqoryDocs

tanqoryExtProductReviewsModerate

  • Mutation
  • Products

Publishes, hides, marks as spam or deletes up to 100 reviews at once.

Arguments

ArgumentTypeRequiredDefault
actionTanqoryExtProductReviewModeration!Required
ids[ID!]!Required

Returns

TanqoryExtProductReviewsModeratePayload!

FieldTypeDescription
deletedReviewIds[ID!]
reviews[TanqoryExtProductReview!]

The reviews changed (empty after DELETE).

userErrors[TanqoryExtProductReviewUserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtProductReviewsModerate($action: TanqoryExtProductReviewModeration!, $ids: [ID!]!) {\n  tanqoryExtProductReviewsModerate(action: $action, ids: $ids) {\n    deletedReviewIds\n    reviews { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"action":"DELETE","ids":[]}}'

Built from commit 0cac88ece6de · API version 2026-10