Anchor to marketWebPresenceUpdatemarket
marketWebPresenceUpdate
mutationDeprecated
Requires for queries and both
as well as
for mutations.
Updates a market web presence. Use instead.
Anchor to Arguments
Arguments
- Anchor to webPresenceweb•
Presence MarketWeb requiredPresence Update Input! The web_presence fields used to update the market's web presence.
- Anchor to webPresenceIdweb•
Presence Id ID!required The ID of the web presence to update.
Was this section helpful?
Anchor to MarketWebPresenceUpdatePayload returnsMarketWebPresenceUpdatePayload 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 marketWebPresenceUpdate($webPresence: MarketWebPresenceUpdateInput!, $webPresenceId: ID!) {
marketWebPresenceUpdate(webPresence: $webPresence, webPresenceId: $webPresenceId) {
market {
# Market fields
}
userErrors {
field
message
}
}
}
Input
{
"webPresence": {
"alternateLocales": [
"<your-alternateLocales>"
],
"defaultLocale": "<your-defaultLocale>",
"domainId": "gid://shopify/<objectName>/10079785100",
"subfolderSuffix": "<your-subfolderSuffix>"
},
"webPresenceId": "gid://shopify/<objectName>/10079785100"
}
{
"webPresence": {
"alternateLocales": [
"<your-alternateLocales>"
],
"defaultLocale": "<your-defaultLocale>",
"domainId": "gid://shopify/<objectName>/10079785100",
"subfolderSuffix": "<your-subfolderSuffix>"
},
"webPresenceId": "gid://shopify/<objectName>/10079785100"
}
input MarketWebPresenceUpdateInput {
alternateLocales: [String!]
defaultLocale: String
domainId: ID
subfolderSuffix: String
}