Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
My Shopify App has a feature that creates a Page using the Pages REST API, for my merchants. In these pages, merchants can add my apps' app blocks. Right before the pages endpoint creation is called, we use Asset API to create a template file. This template file is sent as the `template_suffix` parameter when creating the new Shopify Page.
Now that PUT and DELETE requests to the Asset API are being deprecated, what is the alternative for creating a custom template file to use during the creation of the Page? Is it something achievable with theme app extensions?
Thank you very much!
Hy facing same issue did you find solution
I am also having the same issue, did you find any solutions??
Following!
June 2024: I can confirm that PUT still works to duplicate a template, but POST gets me a file not found, 404 error. jb
following.
Well, you can create templates using "themeFilesUpsert" mutation in Graphql. More Info
Ah, the "new" 10-2024 admin graphQL ... brilliant, thanks jb
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025