Shopify admin api publication mutation / access denied

Highlighted
Shopify Partner
4 0 1

Having the following mutation :

 

 

mutation publish($id: ID!, $input: [PublicationInput!]!) {
          publishablePublish(id: $id, input: $input) {
            publishable {
              resourcePublications(first: 10) {
                edges {
                  node {
                    publication {
                      name
                      id
                    }
                  }
                }
              }
            }
          }
        }

It works perfectly through the installed graphiql app

 

However, while using the same calls through an installed app (so using a token provided after an installation and an oauth flow), i keep getting an access denied

 

Does anyone getting the same errors ?

 

Aside, I have no problem fetching the available publications with an installed app acces token :

 

query publications {
          publications(first: 20) {
            edges {
              node {
                id
                name
              }
            }
          }
        }

 

 

0 Likes