Update a third party
dolibarr_thirdparty_updateUpdates selected fields of an existing Dolibarr third party, such as name, address, email, phone, VAT number, roles and custom fields. Only the fields you provide are changed.
Instructions
Changes fields of a third party. Only the fields given are changed.
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": {
"thirdparty_id": "<thirdparty_id>"
},
"name": "dolibarr_thirdparty_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| zip | No | ||
| name | No | ||
| town | No | ||
| No | |||
| phone | No | ||
| roles | No | What the third party is to the company. | |
| address | No | ||
| name_alias | No | Trade name or short name. | |
| vat_number | No | Intra-community VAT number. | |
| note_public | No | Note visible to the third party (printed on documents). | |
| country_code | No | ISO 3166 country code, e.g. FR, US. | |
| 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. | |
| thirdparty_id | Yes |