I understand the motivation behind the Asset API deprecation, but I think a trimmed down version with the following endpoints would reduce the amount of support for app developers and improve the user experience for merchants:
-
an endpoint to clone a theme template (or at least clone the default page template). By allowing only to clone a template, it wouldn’t allow app developers to inject any code.
-
an endpoint to insert an app block into a template (so that app developers can programmatically add a block for their app into a template). If the endpoint only allows an app block, this block will be removed when the app is uninstalled, avoiding any code being left behind.
At the moment, the most common support questions are hands down related to merchants that don’t understand the template mechanism: they modify the default page template and don’t understand why all their pages are modified, or they create a template and don’t understand that they have to associate it to a page before it is visible on their store. This is a bit frustrating as an app developer because we spend a lot of time explaining basic Shopify concepts, without having the tools to make things more intuitive for the merchants. I think these endpoints would go a long towards a more automated and user-friendly merchant onboarding process, when they install an app.
Or am I missing something, and these endpoints already exist?