TanqoryDocs

tanqoryExtTemplateAssignments

  • Query
  • Content and shop

The store's products, collections, pages, blogs and blog posts grouped by the template suffix each names, every status included. A blank suffix counts as none. Which template a suffix renders depends on the theme: one the theme does not have renders the default template.

Arguments

None.

Returns

[TanqoryExtTemplateAssignment!]! How many of the store's resources of one kind name one template suffix.

FieldTypeDescription
countInt!
resourceTanqoryExtTemplateResource!
templateSuffixString

The suffix as stored (bundle names product.bundle); null for the resources that name none.

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 TanqoryExtTemplateAssignments {\n  tanqoryExtTemplateAssignments {\n    count\n    resource\n    templateSuffix\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10