Export a message to CRM
PUT /api/2.0/mail/messages/crm/export
Exports a mail to the CRM relation history for some entities.
Request body
id_message
type: integer
ID of any message from the chain
Example: 0
crm_contact_ids
type: CrmContactData[]
List of CRM contact entity IDs 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": [
{}
]
}