TanqoryDocs

tanqoryExtShopPolicyVersionRestore

  • Mutation
  • Content and shop

Makes a past text of a written policy its text again, saved as a new version. The text is the merchant's own from then on: the policy's automated switch goes off (for the privacy policy, Customer privacy's automated policy). Refused with NOT_FOUND for a version that is not this store's or is older than 2 years, INVALID when the policy already has this text, NOT_ALLOWED while the switch policy_version_restore is off.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

TanqoryExtShopPolicyVersionRestorePayload

FieldTypeDescription
shopPolicyShopPolicy

The policy with the restored text; null when the restore was refused.

userErrors[TanqoryExtSettingsUserError!]!

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 TanqoryExtShopPolicyVersionRestore($id: ID!) {\n  tanqoryExtShopPolicyVersionRestore(id: $id) {\n    shopPolicy { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10