Anchor to section titled 'undefined'

marketLocalizationsRegister
mutation

Requires write_translations access scope.

Creates or updates market localizations.


The input fields for a market localization.

Anchor to resourceId
resourceId
required

The ID of the resource that is being localized within the context of a market.


Was this section helpful?

The market localizations that were created or updated.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation marketLocalizationsRegister($marketLocalizations: [MarketLocalizationRegisterInput!]!, $resourceId: ID!) {
  marketLocalizationsRegister(marketLocalizations: $marketLocalizations, resourceId: $resourceId) {
    marketLocalizations {
      # MarketLocalization fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "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!
}