update_variant
Update a product variant's title, SKU, prices, inventory management, and options. Specify product and variant IDs to apply changes through the Medusa Admin API.
Instructions
Update a variant (title, sku, prices, manage_inventory, options).
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 |
|---|---|---|---|
| sku | No | ||
| title | No | ||
| prices | No | ||
| product_id | Yes | ||
| variant_id | Yes | ||
| manage_inventory | No |