Requires read_markets for queries and both read_markets as well as write_markets for mutations.

Updates the properties of a market.


Anchor to id
id
required

The ID of the market to update.

The properties to update.


Was this section helpful?

The market object.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation marketUpdate($id: ID!, $input: MarketUpdateInput!) {
  marketUpdate(id: $id, input: $input) {
    market {
      # Market fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100",
  "input": {
    "enabled": true,
    "handle": "<your-handle>",
    "name": "<your-name>"
  }
}
input MarketUpdateInput {
  enabled: Boolean
  handle: String
  name: String
}