Uploading product images to multiple products in productCreateMedia

Solved
Highlighted
Tourist
7 0 0

hey, 

I am following the official tutorial and I have managed to upload multiple images to ONE product. 

 

{ "id": "gid://shopify/Product/1", "media": [ { "originalSource": "https://storage.googleapis.com/imageurl..", "mediaContentType": "IMAGE" } ] }

Just wondering if using the same productCreateMedia mutation, we can upload images to multiple products in one go?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
146 19 25

This is an accepted solution.

Hey @arjun_rajkumar 

It looks like that specific mutation requires a singular product ID. I am not aware of a single API call that you can make that will upload an image file to multiple products. 

Kevin_A | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like