update_product
Mutation/readOnly:false, script-tier/no-model-token action. Save a product in full: this REPLACES the product, including its fields, option groups and variants, exactly as the Business Center product editor's Save does. Call list_products first, change what the owner asked for, and send the whole product (every field, all option groups and every variant, with the variant ids from list_products) so nothing is dropped. Anything left out of variants is removed. Media items are {url, alt} as uploaded; the url must be an https link to media that is already uploaded. Prices are in cents. A product synced from the connected store cannot be saved here. Storefront Pro.
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": {
"itemId": "<itemId>",
"fields": "<fields>",
"proAccessToken": "<proAccessToken>"
},
"name": "update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | The whole product: every field, not just the changed ones. | |
| itemId | Yes | The product id (itemId) from list_products. | |
| variants | No | The whole list of variants; omit or send [] to remove them all. | |
| optionGroups | No | The whole list of option groups; omit or send [] to remove all options. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |