Update products
aalto_update_productsChanges fields, tags or a collection status on up to 50 products. Always preview first (dry_run true, the default): it writes nothing and returns every change plus a confirm_token. Show the user the changes, then call again with dry_run false, the same arguments, the confirm_token and a new idempotency_key. If anyone edits these products in between, the commit is refused; preview again.
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_ids": "<product_ids>",
"idempotency_key": "<idempotency_key>"
},
"name": "aalto_update_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | Fields to overwrite on every listed product; null clears a field. | |
| tags | No | Tag names to add or remove (≤10 each). Personal or Team plan. | |
| status | No | Set the status of these products in one collection they belong to. | |
| dry_run | No | true (default) previews the changes and returns a confirm_token. Show the user, then call again with dry_run false and that token. | |
| product_ids | Yes | 1–50 product ids in this workspace. | |
| confirm_token | No | Required when dry_run is false: the token from a preview of exactly the same request (valid 10 minutes, single use). | |
| idempotency_key | Yes | Required. A new unique string per intended change (8–128 chars). Retrying with the same key and same arguments replays the first result instead of writing twice. |