Update variant
update_variantModify product variant details like title, SKU, barcodes, inventory tracking, backorders, weight, and metadata. Use set_variant_price for prices.
Instructions
Updates variant fields – title, SKU, barcodes, inventory tracking, backorders, weight, metadata. For prices use set_variant_price.
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": {
"product_id": "<product_id>",
"variant_id": "<variant_id>"
},
"name": "update_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ean | No | ||
| sku | No | ||
| upc | No | ||
| title | No | ||
| weight | No | Grams | |
| barcode | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| product_id | Yes | ||
| variant_id | Yes | ||
| allow_backorder | No | Allow selling when out of stock | |
| manage_inventory | No | Track stock (default true) |