Update Custom Fields in Estimate returns {"code":4,"message":"Invalid value passed for JSONString"}

Update Custom Fields in Estimate returns {"code":4,"message":"Invalid value passed for JSONString"}

What am i missing here?

This is a custom function inside "automation" tab of Zoho Books, all i am trying to do is update some custom fields that are blank so they have the correct value from the customers profile in CRM if the sales person forgot to enter it.


  1. updatedEstimate = invokeurl
  2. [
  3. url :"https://books.zoho.com/api/v3/estimates/" + estimateID + "?organization_id=" + organizationID
  4. type :PUT
  5. parameters:{"custom_fields": 
  6.    [
  7.    {
  8. "api_name": "cf_dob",
  9. "value": custDOB
  10.    },
  11.    {
  12.    "api_name": "cf_gender",
  13.    "value": custGender
  14.    }
  15.    ]
  16. }
  17. connection:"zbooks"
  18. ];
RESPONSE: {"code":4,"message":"Invalid value passed for JSONString"}