Reputation: 61
I am making a Shopify App, i just login via oauth but the asset api id proving put method with key val api call where key is having a file name and value is the content of that file.
My concern is that how can we modify the existing liquid file like vqmod by search and replace or search and apned something just before it or after it
Upvotes: 0
Views: 502
Reputation: 4096
You will need to read the asset with the API, and then send the modified asset back to Shopify. The API doesn't provide methods for appending to an asset or replacing within an asset.
If you are building a public Shopify app then think about whether your app can use the ScriptTag API instead. Script tags are less invasive and can make your app easier to uninstall.
Upvotes: 1