I just added image to an existing variant by following json, and it is successful.
{
"variant": {
"id": 39794127077574,
"image_id": 28888322375878
}
}
When I changed the above json into following’s, the price and option1 don’t change as you see in the response below.
{
"variant": {
"id": 39794127077574,
"image_id": 28888322375878,
"option1": "Not Pink",
"price": "99.00"
}
}
Response:
{
"variant":{
"id":39794127077574,
"product_id":6671769927878,
"title":"Blue \/ 155",
"price":"0.00",
"sku":"",
"position":1,
"inventory_policy":"deny",
"compare_at_price":null,
"fulfillment_service":"manual",
"inventory_management":null,
"option1":"Blue",
"option2":"155",
"option3":null,
"created_at":"2021-05-09T10:19:43+08:00",
"updated_at":"2021-05-11T00:52:11+08:00",
"taxable":true,
"barcode":null,
"grams":0,
"image_id":28888322375878,
"weight":"0.0",
"weight_unit":"kg",
"inventory_item_id":41888624378054,
"inventory_quantity":0,
"old_inventory_quantity":0,
"requires_shipping":true,
"admin_graphql_api_id":"gid:\/\/shopify\/ProductVariant\/39794127077574"
}
}