create_company
Create a company record using just a name; duplicates are not checked, so search existing companies first with list_companies. Returns the new company.
Instructions
Create a company record with a name only. Not idempotent: duplicates are not checked, so look with list_companies first. Returns the created company. To create a company alongside a new lead, use create_lead_complex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Company name, e.g. "Acme Inc". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Company ID. | |
| name | No | Company name. | |
| _links | No | HAL links as returned by Kommo (self, next, ...). | |
| group_id | No | ID of the responsible user's group. | |
| _embedded | No | Embedded tags and leads. | |
| account_id | No | Kommo account ID. | |
| created_at | No | Creation time, Unix seconds. | |
| created_by | No | ID of the user who created it. | |
| updated_at | No | Last update time, Unix seconds. | |
| updated_by | No | ID of the user who last updated it. | |
| closest_task_at | No | Next task deadline, Unix seconds, or null. | |
| responsible_user_id | No | ID of the responsible Kommo user. | |
| custom_fields_values | No | Custom field values in Kommo format: objects with field_id, field_code and values. |