I am trying to create a task in Zoho using the following Google Scripts command, but am receiving a 500 error. Could you help me identify the cause?
function createTask(){
var url = "http://projectsapi.zoho.com/portal/localsearchmasters/api/private/json/task/add?authtoken=**redacted**";
var options={
method : "post",
projID : "663334000000018035",
owner : "jeff@ localsearchmasters.com",
listID : "663334000000381087",
todotask: "Social Post Request",
taskdate: ""+Utilities.formatDate(new Date(), Session.getScriptTimeZone(), "MM-dd-yyyy"),
pcomplete: "0",
priority : ""
}
var response = UrlFetchApp.fetch(url, options);
}