Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

"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