translationsRemove
mutation
Requires write_translation access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Delete the translation data for a store resource.
Arguments
A list of business resource fields.
A list of store markets.
The unique identifier for the resource.
For example, product ID
For example, product ID
16057169190700063316363001.Return
Removed translations
user errors
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Delete the translation data for specific markets, languages, and types within a resource
Code
mutation TranslationsRemove {
translationsRemove(
translationKeys: ["title"]
locales: ["en"]
resourceId: "gid://shopline/Product/16065881455967920659531950"
marketIds: ["2805979406510623080534"]
) {
translations {
outdated
locale
value
key
market {
id
}
}
userErrors {
code
field
message
}
}
}
Response
{
"data": {
"translationsRemove": {
"translations": [
{
"value": "Default corpus English - Product title",
"key": "title",
"locale": "en",
"market": {
"id": "DEFAULT"
},
"outdated": false
}
]
}
}
}
Was this article helpful to you?