Update featured image of a product using GraphQL admin API

Hi everyone,

I want to update featured image of a product using GraphQL admin API, and then, I also want to use this API for Bulk operation. But I can’t find any API that can update it. The document mention few APIs, such as: productUpdate, productUpdateMedia. But:

  • productUpdate: It just only add new API when I add media into media field of API, and I have to reorder it using productReorderMedia. But my purpose is use bulk operation which does not support productReorderMedia API

  • productUpdateMedia: it just only allow update alt text. so sad

For updating featured image at single product, I can add image using productUpdate and delete old featured image but I have no options to update featured image in bulk.

Do you guys have any options for this case, please help me. Thank you so much in advance.

Did you find a solution.

I try many mutation and none of the one I tried is working.

I don’t now why this need to be that complicated.

I guess shopify community move to new home. They answer like that: https://community.shopify.dev/t/update-featured-image-of-a-product-using-graphql-admin-api/3478/2?u=thangcq