ruby on rails - Modify API permissions in Shopify
I have an existing app for a shopify store and it only reads products with the API. However, I want to add new features which will make use of metafields edit/update/read api. How can I modifiy my api permissions to give me access to the shops' metafields read/write.
Access to metafields is governed by access to the parent object. For example, if you want to write product metafields then you should add the
write_products OAuth scope (https://help.shopify.com/api/guides/authentication/oauth#scopes) to your app.
You need to unintall your app first. In detail, follow 3 steps below:
- Uninstall your app.
- Inside the stuff of your app-codes, modify SCOPE as you want to. Read more about SCOPE on Shopify.com: https://help.shopify.com/api/guides/authentication/oauth#scopes (https://help.shopify.com/api/guides/authentication/oauth#scopes)
- Install your app again, make sure on install-screen, the new-scope should bee applied.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.