post https://{subdomain}.kommo.com/api/v4///link
This method allows linking entities to a lead, contact or company.
Limitations
The method is available in correspondence to the user rights.
Data type header when the request is successful
Content-Type: application/hal+json
Data type header in case of an error
Content-Type: application/problem+json
Response parameters
| Parameter | Data type | Description |
|---|---|---|
| to_entity_id | int | Linked entity ID |
| to_entity_type | string | Linked entity types (leads, contacts, companies, catalog_elements) |
| metadata | object|null | Linked entity metadata |
| metadata[main_contact] | bool | Defines if the contact is main for the entity |
| metadata[quantity] | int | Quantity of the linked list elements |
| metadata[catalog_id] | int | List ID |
| metadata[updated_by] | int | The ID of the user performing the linking |