I wont update a variant with price and image id ( image already loaded in product gallery)
Here is code:
"query": "mutation productVariantsBulkUpdate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) { productVariantsBulkUpdate(productId: $productId, variants: $variants) { productVariants { id } } }",
"variables": {
"productId": "gid://shopify/Product/9890566734164",
"variants": [
{
"id": "gid://shopify/ProductVariant/50683742978388",
"price": "150.00",
"mediaId":"gid://shopify/MediaImage/51685742968398"
}
]
}
Response is:
"data":{
"productVariantsBulkUpdate":{
"productVariants":{
"productVariants":null
}
}
}
But if I remove the mediaID update, work fine and change price.
What am I doing wrong? Thanks for the reply.
Roberta