Update supplier
hub_update_supplierChange one supplier’s details. Only the fields you pass change; the rest are left alone, and a blank string is ignored rather than blanking the stored value. Renaming is safe — past purchase orders store the id and look the name up. A name already used by another supplier of this company is refused. This does NOT change item costs: those live on the supplier–item link, so use link_supplier_items to re-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": {
"supplierId": "<supplierId>"
},
"name": "hub_update_supplier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| name | No | ||
| notes | No | ||
| phone | No | ||
| state | No | ||
| country | No | ||
| address1 | No | ||
| address2 | No | ||
| postCode | No | ||
| supplierId | Yes | Supplier id from get_suppliers — not a name | |
| contactName | No | ||
| contactEmail | No |