update_variant
Update selected fields of a Shopify product variant by providing its ID and the new values.
Instructions
Update an existing product variant. Only provided fields are changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant_id | Yes | The numeric Shopify variant ID. | |
| price | No | New price. | |
| compare_at_price | No | New compare-at price. | |
| sku | No | New SKU code. | |
| barcode | No | New barcode. | |
| weight | No | New weight. | |
| weight_unit | No | New weight unit. | |
| option1 | No | New value for option 1. | |
| option2 | No | New value for option 2. | |
| option3 | No | New value for option 3. | |
| requires_shipping | No | Whether shipping is required. | |
| taxable | No | Whether it is taxable. |