b24_crm_deal_contacts_set
Replace the contacts linked to a Bitrix24 deal by supplying the deal ID and a list of contact IDs. Use it to correct or update deal-contact associations in one call.
Instructions
Set the contacts linked to a deal (crm.deal.contact.items.set).
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": {
"deal_id": "<deal_id>",
"contact_ids": "<contact_ids>"
},
"name": "b24_crm_deal_contacts_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal_id | Yes | Deal id. | |
| contact_ids | Yes | Contact ids to link, e.g. [11, 12]. Replaces the current set. | |
| webhook_url | No | Override the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default. | |
| personal_webhook | No | Act as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |