marketWebPresenceUpdate

Hello

Any one know where to get the information below to assign the Market to the product

{
“webPresenceId”: “”,
“webPresence”: {
“domainId”: “”,
“defaultLocale”: “”,
“alternateLocales”: ,
“subfolderSuffix”: “”
}
}

1 Like

If you’re wanting to publish a product to a market, I believe you’ll want to use:

https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/publishablepublish

The market has an associated publicationId that you would use.

marketWebPresenceUpdate would be for updating the market-specific website details, not specific to a given product.

Hi Kalen,

Thanks for the explanation I have tried the advice mutations/publishablepublish

but it did not update the Primary Market

{
“id”: “{{product.id}}”,
“input”: [
{
“publicationId”: “gid://shopify/Publication/80755196127”

}
]
}

1 Like

Those look like channels. There are separate publications for the markets.

https://community.shopify.com/c/graphql-basics-and/how-can-i-restrict-the-market-of-the-product-using-graphql/td-p/2535016