andreas
andreas

Reputation: 23

Script Tag error

I have read about http://api.shopify.com/scripttag.html documentation and when i'm try to inject javascript into my shopify apps store using script_tag, i found error message "[API] You do not have script_tags write permissions". How to fix the problem?

Upvotes: 1

Views: 367

Answers (2)

Dylan Smith
Dylan Smith

Reputation: 1522

If you are using OAuth2 Authentication, then you need the write_script_tags scope. The list of scopes is on the Authentication page in the api documentation.

If you are using the Legacy Authentication, then you need to have an app with write access, as scotchi mentions.

Upvotes: 5

scotchi
scotchi

Reputation: 2419

Apps are either read-write or read-only. It sounds like you have a read-only application and read-only apps are unable to create script tags. You'll need to either create a new app that is read-write (i.e. if you're still just doing development) or contact the Shopify folks about potentially switching the app to read-write.

Upvotes: 2

Related Questions