We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Update featured image of a product using GraphQL admin API

Update featured image of a product using GraphQL admin API

ThangCQ
Shopify Partner
34 3 7

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.

 

Replies 2 (2)

PiranhaWeb
Shopify Partner
1 0 0

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.

ThangCQ
Shopify Partner
34 3 7

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=...