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.

GraphQL productAppendImages AND assign to variants

GraphQL productAppendImages AND assign to variants

markus12
Shopify Partner
30 1 14

Hi,

 

With the REST API, one can create product images and specify `variant_ids` as variants which have that image, in a single API call: https://shopify.dev/api/admin-rest/2022-01/resources/product-image#post-products-product-id-images

 

With GraphQL, `productAppendImages` has no `variantIds`:

https://shopify.dev/api/admin-graphql/2022-04/mutations/productappendimages

 

@Shopify Would you consider adding this, so we can avoid having a separate call to

https://shopify.dev/api/admin-graphql/2022-01/mutations/productVariantUpdate

?

Replies 0 (0)