Translate metafields
PUT
/ admin/ v1/ stores/ {store_id}/ metafields/ translationsSet and clear text fields' words in one of the store's other languages, by namespace.key. Only text fields with a value take words. Requires the permission that edits the owner.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
owner_typeenumrequiredWhat a metafield belongs to.
- product
- variant
- collection
- customer
- order
- store
localestringrequiredvaluesobjectrequiredowner_idstring · or nullLeft out for the store.
Returns
200 The owner's metafields after the change.
Errors
- 403
forbiddenMissing the owner's write permission. - 404
not_foundNo such owner. - 422
validation_failedNot a language code, the store's own language, a field that isn't text or has no value, or words that don't fit; seeerrors[].field.