"errors": "Not Found" while adding an existing image to an existing variant.

Abhi1458752
Visitor
2 0 0

Hi
I'm trying to update a product variant by assigning a preexisting image(of the same product) to a product variant by using their ids.

All the ids(product, variant, image) are correct. The authentication is successful.  I'm using the PUT endpoint with the correct URL.

Abhi1458752_0-1626291096458.png

I'm using this documentation: https://shopify.dev/api/admin/rest/reference/products/product-variant#index-2021-07

 

What is the problem here?

And is it possible to use graphQL to add an existing image to an existing variant?

 

Reply 1 (1)

Abhi1458752
Visitor
2 0 0

Issue resolved. Check all id's again