TanqoryDocs

tanqoryExtThemeFileVersions

  • Query
  • Content and shop

The older versions of one theme file, newest first (at most 20). Empty for a file without history (binary files, the assets folder, never changed) and for a theme that is not this store's.

Arguments

ArgumentTypeRequiredDefault
filenameString!Required
themeIdID!Required

Returns

[TanqoryExtThemeFileVersion!]! An earlier body of a theme file, kept when themeFilesUpsert, themeFilesCopy or a restore replaced it.

FieldTypeDescription
checksumMd5String
contentString!

The file's text as it was before it was replaced.

createdAtDateTime!

When this body was replaced.

filenameString!
idID!
sizeUnsignedInt64!

Size of content in bytes.

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":"query TanqoryExtThemeFileVersions($filename: String!, $themeId: ID!) {\n  tanqoryExtThemeFileVersions(filename: $filename, themeId: $themeId) {\n    checksumMd5\n    content\n    createdAt\n    filename\n    id\n    size\n  }\n}","variables":{"filename":"","themeId":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10