Updating product image

Updating product image

Ido1425
Shopify Partner
26 0 0

Hi everyone!

I am trying to update product image with the updateProduct mutation (updateProductImage is deprecated), As I understand I need to user productCreateMedia first and then use productUpdate to update the image.

I would appreciate an example of updating specific product image with productUpdate mutation and extra explanation about productCreateMedia mutation and its usage.

Thank you in advance!

Reply 1 (1)

Dirk
Shopify Staff
2428 259 540

Hey, @Ido1425 

 

Happy to help! I recommend referring to the official Shopify GraphQL Admin API documentation. These resources provide detailed information on the productCreateMedia and productUpdate mutations:
 

These resources will help show you how to effectively use these mutations for updating product images in Shopify using GraphQL. If there is anything else I can help you with, please let me know.

Dirk | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog