Updates variants of a specified product.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the product with managed variants.
Variant info to update.
List of the product's variants.
curl -X PATCH \
'https://www.wixapis.com/stores/v1/products/1044e7e4-37d1-0705-c5b3-623baae212fd/variants' \
--data-binary '{
"variants": [
{
"choices": {
"Size": 'S',
"Color": 'Blue'
},
"price": 100
}
]
}' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
{
"variants": [
{
"id": "00000000-0000-0020-0005-92338aaf6c4a",
"choices": {
"Size": "S",
"Color": "Blue"
},
"variant": {
"priceData": {
"currency": "USD",
"price": 100,
"discountedPrice": 100,
"formatted": {
"price": "$100.00",
"discountedPrice": "$100.00"
}
},
"weight": 0,
"sku": "",
"visible": true
}
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.