Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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
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
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!
I was missing the translations scope. Working fine now. Thanks!
User | RANK |
---|---|
4 | |
4 | |
4 | |
3 | |
3 |