Link records
links_linkПривязать сущности к карточке. entity_type и entity_id — карточка: leads, contacts, companies, customers. items: [{to_entity_id, to_entity_type, metadata}]. to_entity_type: leads, contacts, companies, customers или catalog_elements. Элемент списка и товар крепятся так: to_entity_type catalog_elements, to_entity_id — id элемента из catalog_elements_list, metadata: {catalog_id, quantity}. catalog_id берут из catalogs_list. quantity — сколько штук привязать к сделке. price_id необязателен.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>"
},
"name": "links_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| entity_id | Yes | ||
| entity_type | Yes |