Edit a product held in Foldsquare
update_productChange a product the merchant keeps in Foldsquare (imported, or added by hand): title, sku, barcode, prices, cost, stock, description, images, category, vendor, tags, status, and its options and variants (each list replaced whole; variants: [] removes them). Give only the fields to change. A product that comes from the connected store is not editable here — it is edited in the store, or per catalog with edit_catalog's editProduct — and the answer says so. productId is the id search_products reports (or the sku).
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": {
"productId": "<productId>",
"fields": "<fields>"
},
"name": "update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | The fields to change | |
| productId | Yes | The id search_products reports with source "foldsquare", or the sku |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | Yes | The fields changed | |
| product | Yes | ||
| updated | Yes |