I run a PageBuilder app. I want to add a custom blog layout (liquid file) to the live theme (So basically add a file to the theme). How do I go about doing this? On the shopify docs, It says you are not allowed to use the ASSET api.
Looks like you may want to use this:
Worth noting but I believe that if you update an already existing file it will overwrite it.
Thanks will look into it
Please share back here if that works for you. I know that is newer, starting in the 2024-10 version.
HI Sumanth - if your app is a page builder app, you may also qualify for an exception to the restriction on the Asset API:
I got write_themes_assets is not a valid scope error. Gonna hold off building this feature for a bit and come back to it later. Thanks for your help either way!
Right, because you need to request access to use it from what I gathered from @Liam-Shopify post here:
We’re getting this error for custom apps. write_themes_assets is not a valid scope error.
Is that to be expected? It doesn’t seem like anyone in this thread has been able to get this working.
@bsenescu as @Liam-Shopify outlined in that other thread you need to request exemption to be able to use that scope. I think you need to fill out the form he linked and when you get access you should be able to use it.
That form seems geared towards app store / “public” apps. I think you may be right that it applies to all apps though, just want some clarification if that’s the intended behavior.
Example: if we have 3 custom apps, do we need to request access for each of them?