Variants Batch Replace
tiendanube_variants_batch_replaceReplace a product's full variant set in one call by sending a complete array of variant objects, useful for bulk updates that must replace existing variants.
Instructions
Replace the full set of variants of a product in one call (array of variant objects). Costs rate limit proportional to variants/languages/inventory_levels (weighted token bucket). HTTP: PUT /products/{product_id}/variants 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>",
"variants": "<variants>"
},
"name": "tiendanube_variants_batch_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | Yes | Complete array of variant objects replacing the existing set | |
| product_id | Yes | Product ID |