Update Contact Person in Zoho Invoice

Update Contact Person in Zoho Invoice

Hello,

I’m trying to update the contact person in an invoice in Zoho Books using Zoho Creator. No I’ve written the following script but I still get the response: Bad JSON format/request etc. What am I doing wrong?
 

The script is:

  1. contactpersonlist = list();           
  2. contactperson = Map();
  3. contactperson.put(1,957028000001488016);
  4. contactpersonlist.add(contactperson);
  5. response = zoho.books.updateRecord("invoices","<orga/id>","957028000001529129",{"contact_persons":""+ contactpersonlist +""});
  6. input.Response = response;