Anchor to marketLocalizationsRegistermarket
market Localizations Register
mutation
Requires access scope.
Creates or updates market localizations.
Anchor to Arguments
Arguments
- Anchor to marketLocalizationsmarket•
Localizations The input fields for a market localization.
- Anchor to resourceIdresource•
Id ID!required The ID of the resource that is being localized within the context of a market.
Was this section helpful?
- Anchor to marketLocalizationsmarket•
Localizations The market localizations that were created or updated.
- Anchor to userErrorsuser•
Errors [TranslationUser Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation marketLocalizationsRegister($marketLocalizations: [MarketLocalizationRegisterInput!]!, $resourceId: ID!) {2 marketLocalizationsRegister(marketLocalizations: $marketLocalizations, resourceId: $resourceId) {3 marketLocalizations {4 # MarketLocalization fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "marketLocalizations": [3 {4 "key": "<your-key>",5 "marketId": "gid://shopify/<objectName>/10079785100",6 "marketLocalizableContentDigest": "<your-marketLocalizableContentDigest>",7 "value": "<your-value>"8 }9 ],10 "resourceId": "gid://shopify/<objectName>/10079785100"11}
{
"marketLocalizations": [
{
"key": "<your-key>",
"marketId": "gid://shopify/<objectName>/10079785100",
"marketLocalizableContentDigest": "<your-marketLocalizableContentDigest>",
"value": "<your-value>"
}
],
"resourceId": "gid://shopify/<objectName>/10079785100"
}
input MarketLocalizationRegisterInput {
key: String!
marketId: ID!
marketLocalizableContentDigest: String!
value: String!
}