Product webhook payload missing media IDs

Product webhook payload missing media IDs

alttextai
Shopify Partner
6 0 2

I am trying to respond to a product update webhook and update some properties of the associated images. I'd like to use the productUpdateMedia mutation, but the webhook data doesn't have the MediaImage IDs that are needed.


Is this possible to do? It seems like Shopify needs to add the new MediaImage ids into the webhook data.

Reply 1 (1)

alttextai
Shopify Partner
6 0 2

Alternatively, if the productUpdateMedia mutation would accept a gid with the old ProductImage ID, that would work too.  e.g.

"id": "gid://shopify/ProductImage/123456789"