All things Shopify and commerce
Hi,
I am using Shopify GraphQL Admin API (2025-04) to create and update products. My productCreate Mutation is working fine to create products and media associated with it. The issue occurs for productUpdate mutation. Currently, the mutation appends the images as new and doesn't remove the existing one and then append the new ones only nor there's a option available.
I can't simply send only the new images because for which I have to first get all the existing images of a product and then only pass the new ones. I discussed this issue with the Chatboots, they asking me to first get the images of a product, then delete them and the append the new ones but it requires 3 indivitual requests but I need to use only one request to achieve this whole functionality.
Is there an option or a workaround available to overwrite existing images of a product with the new ones?
Thanks in advance
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025