Anchor to marketUpdatemarket
marketUpdate
mutation
Requires for queries and both
as well as
for mutations.
Updates the properties of a market.
Anchor to Arguments
Arguments
- •ID!required
The ID of the market to update.
- Anchor to inputinput•Market
Update requiredInput! The properties to update.
Was this section helpful?
Anchor to MarketUpdatePayload returnsMarketUpdatePayload 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 marketUpdate($id: ID!, $input: MarketUpdateInput!) {
marketUpdate(id: $id, input: $input) {
market {
# Market fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"input": {
"enabled": true,
"handle": "<your-handle>",
"name": "<your-name>"
}
}
{
"id": "gid://shopify/<objectName>/10079785100",
"input": {
"enabled": true,
"handle": "<your-handle>",
"name": "<your-name>"
}
}
input MarketUpdateInput {
enabled: Boolean
handle: String
name: String
}