Anchor to marketWebPresenceCreatemarket
marketWebPresenceCreate
mutationDeprecated
Requires for queries and both
as well as
for mutations.
Creates a web presence for a market. Use instead.
Anchor to Arguments
Arguments
- Anchor to marketIdmarket•
Id ID!required The ID of the market for which to create a web presence.
- Anchor to webPresenceweb•
Presence MarketWeb requiredPresence Create Input! The details of the web presence to be created.
Was this section helpful?
Anchor to MarketWebPresenceCreatePayload returnsMarketWebPresenceCreatePayload returns
- Anchor to marketmarket•
The market object.
- Anchor to userErrorsuser•
Errors [MarketUser non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation marketWebPresenceCreate($marketId: ID!, $webPresence: MarketWebPresenceCreateInput!) {2 marketWebPresenceCreate(marketId: $marketId, webPresence: $webPresence) {3 market {4 # Market fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "marketId": "gid://shopify/<objectName>/10079785100",3 "webPresence": {4 "alternateLocales": [5 "<your-alternateLocales>"6 ],7 "defaultLocale": "<your-defaultLocale>",8 "domainId": "gid://shopify/<objectName>/10079785100",9 "subfolderSuffix": "<your-subfolderSuffix>"10 }11}
{
"marketId": "gid://shopify/<objectName>/10079785100",
"webPresence": {
"alternateLocales": [
"<your-alternateLocales>"
],
"defaultLocale": "<your-defaultLocale>",
"domainId": "gid://shopify/<objectName>/10079785100",
"subfolderSuffix": "<your-subfolderSuffix>"
}
}
input MarketWebPresenceCreateInput {
alternateLocales: [String!]
defaultLocale: String!
domainId: ID
subfolderSuffix: String
}