update_contact
Modify fields on an existing Kommo contact by ID, overwriting only the values you send while leaving all other contact fields unchanged.
Instructions
Update fields on an existing contact by sending fields as the body of a Kommo API v4 PATCH /contacts/{id}. Returns the updated contact. Provided values overwrite existing ones; omitted fields are untouched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Raw Kommo v4 contact fields to change, passed through unchanged. Common keys: name, first_name, last_name, responsible_user_id, custom_fields_values (array of {field_id, values: [{value, enum_code}]}; field IDs from list_custom_fields). Example: {"name": "Jane Roe"}. | |
| contact_id | Yes | Kommo contact ID (integer). Obtain it from list_contacts or from the create_contact result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Contact ID. | |
| name | No | Full 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 companies. | |
| last_name | No | Last name. | |
| account_id | No | Kommo account ID. | |
| created_at | No | Creation time, Unix seconds. | |
| created_by | No | ID of the user who created it. | |
| first_name | No | First name. | |
| 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. |