TanqoryDocs

tanqoryExtThemeDefaultContentCopy

  • Mutation
  • Markets, tax and languages

Gives toThemeId the merchant's words of fromThemeId, replacing its own: a theme made from another (Duplicate, Update theme) keeps them. NOT_FOUND: either theme is not this store's. INVALID: the same theme twice.

Arguments

ArgumentTypeRequiredDefault
fromThemeIdString!Required
toThemeIdString!Required

Returns

TanqoryExtThemeDefaultContentCopyPayload

FieldTypeDescription
copiedCountInt

How many strings the target theme took.

userErrors[TanqoryExtThemeDefaultContentUserError!]!

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 TanqoryExtThemeDefaultContentCopy($fromThemeId: String!, $toThemeId: String!) {\n  tanqoryExtThemeDefaultContentCopy(fromThemeId: $fromThemeId, toThemeId: $toThemeId) {\n    copiedCount\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"fromThemeId":"","toThemeId":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10