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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"variant_id": "<variant_id>"
},
"name": "update_variant"
}
}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. |