products_set_variants
Set a product's options and the picture for each. Money is integer minor units (cents). Calling this changes nothing: it returns a preview of what would change and a confirmation link. Only the merchant, on that page, can make it happen.
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": "<product>",
"variants": "<variants>"
},
"name": "products_set_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | The product, by handle or by (enough of) its title. | |
| variants | Yes |