TanqoryDocs

shopPolicyUpdate

  • Mutation
  • Content and shop

Requires write_legal_policies access scope. About access scopes

Sets the text of one of the store's legal policies, such as refunds or privacy. The answer holds the policy, or userErrors saying what to fix.

Arguments

ArgumentTypeRequiredDefault
shopPolicyShopPolicyInput!Required

Returns

ShopPolicyUpdatePayload What shopPolicyUpdate returns: the updated shopPolicy and any userErrors.

FieldTypeDescription
shopPolicyShopPolicy
userErrors[ShopPolicyUserError!]!

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 ShopPolicyUpdate($shopPolicy: ShopPolicyInput!) {\n  shopPolicyUpdate(shopPolicy: $shopPolicy) {\n    shopPolicy { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"shopPolicy":{"body":"","type":"CONTACT_INFORMATION"}}}'

Built from commit c0b3fb3fdef7 · API version 2026-10