Skip to main content

Update product variant by id

Update product variant by id

Authorizations:Token
Query Parameters
id
required
integerId value of the ProductVariant object
Request Body Schema:
ProductVariant object that needs to be added
idintegerUnique ID
product
pricestringPrice
defaultPricebooleanDefault price flag
amountintegerAmount
defaultAmountbooleanDefault amount flag
weightstringWeight
defaultWeightbooleanDefault weight flag
skustringProduct SKU
variant_idstringProduct variant unique id
defaultValuebooleanDefault flag
image
attributeValueCArrayAttribute value (checkbox)
attributeValueSArrayAttribute value (select)
orderItemsArrayProduct order items

Responses

200Success
Response schema:
Success
idintegerUnique ID
product
pricestringPrice
defaultPricebooleanDefault price flag
amountintegerAmount
defaultAmountbooleanDefault amount flag
weightstringWeight
defaultWeightbooleanDefault weight flag
skustringProduct SKU
variant_idstringProduct variant unique id
defaultValuebooleanDefault flag
image
attributeValueCArrayAttribute value (checkbox)
attributeValueSArrayAttribute value (select)
orderItemsArrayProduct order items