Trying to send email using CRM template via API from Creator

Trying to send email using CRM template via API from Creator

Hello Everyone,

I have been trying to send an email template that has been stored in CRM via an API function that I am executing in Zoho Creator. I am using the following function:

email_mp = Map();
email_mp.put("from",{"user_name":"xyz","email": zoho.loginuserid});
email_mp.put("to",{{"user_name":"Maaz Ansari","email":"maaz.ansari@basecampdata.com"}});
email_mp.put("template",{"id":"3205780000169019326"});
info email_mp;
email_mp_list = List();
email_mp_list.add(email_mp);
final_mp = {"data":email_mp_list};
esp = invokeurl
[
type :POST
parameters:final_mp + ""
connection:"zohocrmnew"
];
info Resp ;

However, it return an error that 

image.png

Now, the template that I am trying to send is from emails, like shown in the picture below:

image.png

Can somone please tell me a way on how can I do this?
I have been following this link but its so confusing and I am unable to understand it at all. 

Many Thanks,
Maaz Ansari