Update company
well_update_companyUpdate an existing company in the current workspace.
Use this tool when the user asks to change, fix, rename, or edit a company's fields.
REQUIRED: company_id OPTIONAL (only include fields the user wants changed): name, description, domain, registered_name, trade_name, tax_id_value, tax_id_type, registry_country (ISO 3166-1 alpha-2, e.g. "FR"), business_type, registered_value, registry_name, locale (ISO 639-1 two-letter language code, e.g. "en", "fr" — not "en_US").
CATEGORIES (a counterparty's industry): pass category_ids — the COMPLETE set
of category ids the company should carry. It REPLACES the current set: ids you
leave out are unlinked, and [] clears every category. Omit the field to
leave the categories untouched. Read the catalog first with
well_query_records({ root: "categories", whereClause: { category_type: { _eq:
"company" } } }) and pass ids from it — an id that is not a
category_type = "company" row is refused, and this tool never creates a
category.
NOT CHANGEABLE via this tool: emails, phones, locations, linked people, media. Those require dedicated tools (not yet available).
Returns { success: true, company_id, name } on success — plus category_count,
the number of categories the company carries afterwards, when the call passed
category_ids. Returns { success: false, error } on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Company name | |
| domain | No | Primary website domain (e.g. acme.com) | |
| locale | No | Preferred language as an ISO 639-1 two-letter code (e.g. en, fr, de). Pass null to clear. | |
| company_id | Yes | The UUID of the company to update (required) | |
| trade_name | No | Trading name / DBA | |
| description | No | Brief company description; pass null to clear | |
| tax_id_type | No | Tax identifier type (VAT, SIRET, EIN, ...) | |
| category_ids | No | The COMPLETE set of company-category ids this company should carry. Replaces the current set; [] clears it; omit to leave categories unchanged. | |
| tax_id_value | No | Tax identifier value (VAT, SIRET, EIN, ...) | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| business_type | No | Business type / legal form | |
| registry_name | No | Registry name | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. | |
| registered_name | No | Official registered legal name | |
| registered_value | No | Registry identifier value | |
| registry_country | No | ISO 3166-1 alpha-2 country code of the registry (e.g. FR, US) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| error | No | ||
| success | Yes | ||
| company_id | No | ||
| category_count | No |