Update a product or service
dolibarr_product_updateUpdate selected fields of an existing product, including price, reference, VAT, and notes; only provided fields change, and a new price becomes the default selling price.
Instructions
Changes fields of a product. Only the fields given are changed; a new price becomes the default selling price.
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_id": "<product_id>"
},
"name": "dolibarr_product_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Product reference (code). Must be unique. | |
| kind | No | ||
| label | No | ||
| price | No | Selling price before tax. | |
| weight | No | ||
| barcode | No | ||
| for_sale | No | ||
| vat_rate | No | Default VAT rate in percent. | |
| product_id | Yes | ||
| description | No | ||
| lot_tracked | No | Track lots / serial numbers (needs the Lots module). | |
| note_public | No | Note visible to the third party (printed on documents). | |
| for_purchase | No | ||
| note_private | No | Internal note. | |
| custom_fields | No | Custom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list. |