TranslationsRegister access denied

Amarantha
New Member
1 0 0

Hello,

 

I am quite new to Shopify and testing the API.

 

I am currently testing the Translations API (Admin api) and I am able to retrieve the translations. But when I create a translation with the key from a private app I have created with e.g

 

 

mutation CreateTranslation($id: ID!, $translations: [TranslationInput!]!) {
translationsRegister(resourceId: $id, translations: $translations) {
userErrors {
message
field
}
translations {
locale
key
value
}
}
}

 

variables:

 

{
"id": "gid://shopify/Product/4581945049145",
"translations": [
{
"key": "title",
"value": "XXENGLISH",
"locale": "en",
"translatableContentDigest": "c0d42fafcf1a137e44f62541e152dfa2ac76cd2c4853ce21842ef3e2340160fd"
}
]
}

 

I get a 

 

    "data": {
        "translationsRegister"null
    },
    "errors": [
        {
            "message""TranslationsRegister access denied",
            "locations": [
                {
                    "line"3,
                    "column"3
                }
            ],
            "path": [
                "translationsRegister"
            ]
        }
    ],
 
The strange thing is that from the graphql shopify app it works, I have checked I have enabled the premision in my private app.
 
Thnak you in advance.
Replies 3 (3)
SBD_
Shopify Staff
Shopify Staff
1098 146 219

Hey @Amarantha,

 

Does the private app also have product permissions? Are you able to share the request ID from the response headers?

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

VivekH
Excursionist
12 1 12

Hello @SBD_ , I am facing this exact same issue. My request id is b667b272-a796-4b51-b8ed-9c5a8f7696f3

Could you please help me resolve this? Thank you!

VivekH
Excursionist
12 1 12

I was missing the translations scope. Working fine now. Thanks!