Set own company
well_set_own_companySet which company the workspace itself IS — the confirmed own-company anchor.
REQUIRED: company_id — a company that ALREADY EXISTS in this workspace. Obtain it with well_query_records (companies) or well_create_company; this tool never creates one.
This is a deliberate, accounting-critical write, not a convenience. Anchoring the own company overwrites the workspace's legal identity on its accounting settings (including clearing fields when the anchor moves), records a manual-confirm audit row, and syncs the billing customer name. It never re-posts existing journal entries. Confirm the exact company with the user before calling; never guess one from a name.
Only a workspace owner or admin may set the own company. A caller without that role is refused, not silently ignored.
well_start_close hard-gates on this anchor: a workspace with no own company cannot start a close.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | The UUID of a company already in this workspace to anchor as its own company. | |
| 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. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| success | Yes | ||
| own_company_id | No |