marketWebPresenceUpdate

marketWebPresenceUpdate

gary07
Excursionist
58 0 8

Hello 

 

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

 

{
"webPresenceId": "",
"webPresence": {
"domainId": "",
"defaultLocale": "",
"alternateLocales": [],
"subfolderSuffix": ""
}
}

Replies 3 (3)

Kalen_Jordan
Shopify Partner
743 34 130

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.

gary07
Excursionist
58 0 8

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"

}
]
}

 

gary07_0-1726051874973.png

 

Kalen_Jordan
Shopify Partner
743 34 130

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-usin...