Shopify theme API tutorial (2026): read every theme and theme file from your own Shopify app with the GraphQL Admin API - and see what happens when the app tries to change one. Even with write_themes on my own store, Shopify answers ACCESS_DENIED without an exemption. Then the approved route: checking which themes accept app blocks. Shopify app development series, episode 17 - everything shown is real, nothing skipped.
What you'll learn
Scope write_themes / read_themes
themes(roles: [MAIN]) + theme ids
theme.files with wildcards (the GraphQL theme assets API)
Read a file's content (and the JSON comment gotcha)
themeFilesUpsert β ACCESS_DENIED + the exemption
App block support: @app in the section schema
GraphQL aliases: one request for every theme
π» Free source code for this episode: https://github.com/fayyaz315/shopify-app-development-2026/tree/ep17
3 quick fixes from this episode
Shopify Theme API: Why themeFilesUpsert Says ACCESS_DENIED
Shopify theme API (2026-10): my app has write_themes, onβ¦