Change a company
update_companyChanges data: changes a company's name, roles, country or ERP code, as the person who connected this app, and records it in the organization's audit log. What it replaces is gone: roles replaces the whole list, and country: null or erp_code: null clears it. Use it only when the user asks to change a company, and say what will change before calling it. Only the arguments you send change; the rest stay, and sending the values it already has changes nothing. A new name that another company already goes by is refused with an error naming that company. An own company's roles never change. Get the company_id from list_companies. To add or remove another spelling of the name use add_company_alias and remove_company_alias.
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": {
"company_id": "<company_id>"
},
"name": "update_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The company's name as its documents write it, such as "Progum Co., Ltd". | |
| roles | No | What it is to the organization: any of supplier, forwarder, customer. Omit when unknown; a document later sets it. | |
| country | No | Two-letter ISO 3166 country code such as "PE". | |
| erp_code | No | The company's code in the organization's ERP, so list_companies can find it by that code. | |
| company_id | Yes | A company id such as "cmp_12", as returned by list_companies. |