Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Product webhook payload missing media IDs

Product webhook payload missing media IDs

alttextai
Shopify Partner
6 0 4

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 4

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"