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
mutation marketWebPresenceCreate($marketId: ID!, $webPresence: MarketWebPresenceCreateInput!) {
marketWebPresenceCreate(marketId: $marketId, webPresence: $webPresence) {
market {
# Market fields
}
userErrors {
field
message
}
}
}
Input
{
"marketId": "gid://shopify/<objectName>/10079785100",
"webPresence": {
"alternateLocales": [
"<your-alternateLocales>"
],
"defaultLocale": "<your-defaultLocale>",
"domainId": "gid://shopify/<objectName>/10079785100",
"subfolderSuffix": "<your-subfolderSuffix>"
}
}
{
"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
}