update_product_variant
Modify an existing product variant's price, SKU, barcode, weight, or compare-at price using its variant ID.
Instructions
Update a product variant (price, SKU, inventory, etc.)
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": {
"id": "<id>"
},
"name": "update_product_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variant ID to update | |
| sku | No | New SKU | |
| price | No | New price | |
| weight | No | Weight value | |
| barcode | No | New barcode | |
| weightUnit | No | Weight unit | |
| compareAtPrice | No | Compare at price |