Variants Update
tiendanube_variants_updateUpdate a single product variant's price, SKU, stock, weight, or other fields through the Tiendanube API.
Instructions
Update one variant (price, SKU, weight, stock...). HTTP: PUT /products/{product_id}/variants/{id} Required scope: write_products API version: 2025-03
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>",
"id": "<id>"
},
"name": "tiendanube_variants_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variant ID | |
| mpn | No | Manufacturer part number | |
| sku | No | SKU | |
| cost | No | Unit cost (decimal string) | |
| depth | No | Depth in cm | |
| price | No | Price as decimal string, e.g. '1999.90' | |
| stock | No | Stock quantity; null = infinite | |
| width | No | Width in cm | |
| gender | No | Gender (Google Shopping) | |
| height | No | Height in cm | |
| values | No | One i18n value per product attribute, e.g. [{"es":"M"},{"es":"Rojo"}] | |
| weight | No | Weight in kg | |
| barcode | No | Barcode (EAN/UPC) | |
| image_id | No | ID of a product image to associate | |
| age_group | No | Age group (Google Shopping) | |
| product_id | Yes | Product ID | |
| inventory_levels | No | Per-location stock for multi-location stores | |
| stock_management | No | true to track stock; false = infinite stock | |
| additional_fields | No | Extra raw API body fields not covered above; merged into the request body | |
| promotional_price | No | Promotional price (decimal string) |