App reviews, troubleshooting, and recommendations
Hi,
Is it possible to upload images to not only products but simultaneously to its variants too?
Currently I see the solution by using combination of productCreateMedia and productVariantAppendMedia. From productCreateMedia I get mediaIds of uploaded images and use them in productVariantAppendMedia. Is there any api or shortcut so that I can specify productVariant in upload? F.e some kind of
mutation productCreateMedia($productId: ID!, $media: [CreateMediaInput!]!) {
productCreateMedia(productId: $productId, media: $media) {
media {
alt
id
}
mediaUserErrors {
code
field
message
}
product {
id
}
}
}
with 3rd parameter as variantIds or smth like that?
Thanks in advance!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025