Update a catalog item variant

PUT {{baseUrl}}/catalog/{itemId}/variants/{variantId}

Replaces the entire variant with the provided JSON. For instance, if you had a variant with two entries in extraProperties and now you are sending a PUT with only a single entry, the second entry will be effectively removed.

If you want to apply partial updates to a variant, use the PATCH version.

Request Body

{"externalId"=>"507b78f4", "sku"=>"WHEYCONCPOTE900CHOC", "gtin"=>"3234567890126", "mpn"=>"H2G2-42", "ncm"=>"string", "condition"=>"notApplicable|new|refurbished|used", "images"=>["https://mywebsite.com.br/media/catalog/product/whey-900-sabor-chocolate.jpg", "https://mywebsite.com.br/media/catalog/product/whey-900-sabor-chocolate-verso.jpg"], "keywords"=>"chocolate (agrega automaticamente às keywords do produto)", "entryState"=>"draft|pendingApproval|published|closed", "price"=>"159.90 BRL", "salePrice"=>"149.90 BRL", "salePriceEffectiveDate"=>{"start"=>"2021-02-24T13:00-0300", "end"=>"2021-02-29T15:30-0300"}, "stock"=>999, "availability"=>"inStock|availableForOrder|onDemand|outOfStock", "availabilityDate"=>{"start"=>"2021-02-24T13:00-0300", "end"=>"2021-02-29T15:30-0300"}, "attributes"=>[{"key"=>"Sabor", "value"=>"Chocolate"}], "measurements"=>{"height"=>"30.0 cm", "length"=>"15.0 cm", "width"=>"15.0 cm", "weight"=>"900 g"}, "customData"=>[{"key"=>"Campo customizado", "value"=>"Valor do campo customizado", "visibility"=>"public|protected|private"}, {"key"=>"googleCategory", "value"=>"Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements", "visibility"=>"public"}]}