TanqoryDocs

tanqoryExtFileVersions

  • Query
  • Content and shop

The file's kept earlier contents, newest first. An unknown file has none.

Arguments

ArgumentTypeRequiredDefault
fileIdID!Required

Returns

[TanqoryExtFileVersion!]! An earlier content of a file, kept when its content was replaced.

FieldTypeDescription
fileSizeUnsignedInt64
filenameString

The file's name when it had this content.

heightInt
idID!
mimeTypeString
replacedAtDateTime!

When this content was replaced.

urlURL!

Where the earlier content is stored.

widthInt

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 TanqoryExtFileVersions($fileId: ID!) {\n  tanqoryExtFileVersions(fileId: $fileId) {\n    fileSize\n    filename\n    height\n    id\n    mimeType\n    replacedAt\n    url\n    width\n  }\n}","variables":{"fileId":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10