GraphQL: How to update translations in products

I am writing a script that uses the following mutation to update my translations

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

The mutation works fine for metaobjects but when the gid points to a prodeuct I get this error messages:

"message": "Key descriptionHtml is not a valid translatable field",
"message": "Key scent_description is not a valid translatable field",

I can manually update the translations using the admin dashboard.
Any idea what I’m doing wrong?

So it seams it’s not descriptionHtml but body_html.
Still no idea how I can update the metafield.

1 Like

could you share your input params?