Write to any Dolibarr API endpoint
dolibarr_api_writeApplies Dolibarr REST API changes via POST, PUT, or DELETE routes when no dedicated tool exists. Shows a preview by default; set confirm=true to execute.
Instructions
Calls any POST, PUT or DELETE route of the Dolibarr REST API. A last resort for changes that no dedicated dolibarr_* tool covers: find the route and its body fields with dolibarr_api_find_endpoint first, and prefer a dedicated tool whenever one exists. This step cannot simply be undone: without confirm=true it only returns a preview.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "dolibarr_api_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST and PUT. | |
| path | Yes | Route path, e.g. /thirdparties or /orders/12/contact/5/SHIPPING. | |
| method | Yes | ||
| reason | No | One line on why, kept in the audit log. Required when confirm is true. | |
| confirm | No | false (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step. |