Link a conversation to CRM
PUT /api/2.0/mail/conversations/crm/link
Links a conversation to the CRM entities. All the new mails will be added to the CRM history.
Request body
id_message
type: integer
ID of any message from the conversation
Example: 0
crm_contact_ids
type: CrmContactData[]
List of CRM entities in the following format: {entity_id: 0, entity_type: 0}.
Entity types: 1 - Contact, 2 - Case, 3 - Opportunity
Request example
{
"id_message": 0,
"crm_contact_ids": [
{}
]
}