Associate email sent by another user (for admin users only)

POST {{api-domain}}/crm/v4/Deals/4876876000000333267/actions/associate_email

Request Body

{"Emails"=>[{"from"=>{"user_name"=>"user1", "email"=>"test@zoho.com"}, "to"=>[{"user_name"=>"user2", "email"=>"test1@zoho.com"}], "cc"=>[{"user_name"=>"user3", "email"=>"test2@zoho.com"}], "bcc"=>[{"user_name"=>"user4", "email"=>"test3@zoho.com"}], "owner"=>{"id"=>"4876876000001360001"}, "subject"=>"Other User email", "content"=>"<h3><span style=\"background-color: rgb(254, 255, 102)\">Mail is of rich text format</span></h3><h3><span style=\"background-color: rgb(254, 255, 102)\">REGARDS,</span></h3><div><span style=\"background-color: rgb(254, 255, 102)\">AZ</span></div><div><span style=\"background-color: rgb(254, 255, 102)\">ADMIN</span></div> <div></div>", "mail_format"=>"html", "date_time"=>"2018-06-12T12:12:12+05:30", "sent"=>false, "attachments"=>[{"id"=>"39c17f1033cd120e62f8104c545af0ef95a1bd5438fe9159ee8ff6d1bee480cd", "name"=>"Test File"}], "original_message_id"=>"1234534frad-aers2332w243"}]}

RESPONSES

status: Created

{&quot;Emails&quot;:[{&quot;code&quot;:&quot;SUCCESS&quot;,&quot;details&quot;:{&quot;message_id&quot;:&quot;39c17f1033cd120e62f8104c545af0efaaf8bb98ea1c14ff44fa71b626e892ff&quot;},&quot;message&quot;:&quot;Your mail has been added successfully&quot;,&quot;status&quot;:&quot;success&quot;}]}