Question:
There is no way to update the product variant using catalog v1 REST API. If I create a product by passing variants
POST https://www.wixapis.com/stores/v1/products
"variants": [{
"choices": {
"color": "black"
},
"price": 39.0,
"sku": "SN-CB"
}
]
it creates a product, but variant does not include the SKU (value is empty, price and choices are set correctly). When I try to update the product variant, it does nothing
PATCH https://www.wixapis.com/stores/v1/products/{created_id}
{
"products": {
"variants": [{
"id": "a0b26abb-1262-4103-bcff-3b6d076b4d51",
"choices": {
"color": "black"
},
"sku": "SN-SB",
"price": 40
}]
}
}
nothing changes. Even lastUpdated property of the product stays the same. How to correctly update the variant values?