ERP: Edit a product
erp_product_updateChange an existing catalog item: name, number/article, sale price, cost (purchase price), barcode, short / full description, maker, characteristics {name: value} ("" removes one), its goods 'category' (the category name or «Parent / Child» path as in Settings → Product categories; "" removes it) and 'on_site' — false HIDES the product on the company's web shop / site, true shows it again («прибери з сайту», «сховай товар», «поверни на сайт»; the connected shop follows at its next sync). 'item' = the item as the person names it (name words, number, barcode); several matches are refused with candidates. Pass ONLY what changes. Proposed write: one card listing each field before → after. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"item": "<item>"
},
"name": "erp_product_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| item | Yes | ||
| name | No | ||
| price | No | ||
| number | No | ||
| barcode | No | ||
| on_site | No | false = hide the product on the web shop / site, true = show it again. | |
| category | No | The goods category to put the item in (name or «Parent / Child»); "" takes it out of its category. | |
| description | No | ||
| manufacturer | No | ||
| characteristics | No | Characteristics as {name: value}, e.g. {"Форма": "капсули", "Кількість": "120"}. An empty value removes that characteristic. | |
| short_description | No |