TanqoryDocs

tanqoryExtThemeAppEmbedsCopy

  • Mutation
  • Apps and platform

Gives toThemeId the app embed switches 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

TanqoryExtThemeAppEmbedsCopyPayload

FieldTypeDescription
copiedCountInt

How many switches the target theme took.

userErrors[TanqoryExtThemeAppEmbedUserError!]!

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 TanqoryExtThemeAppEmbedsCopy($fromThemeId: String!, $toThemeId: String!) {\n  tanqoryExtThemeAppEmbedsCopy(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