Getting error while calling add leave api
Hello I am trying to call add leave api of zohu, while calling I am getting below error.
{"code":7052,"message":{"Daystaken":"Enter a value for Hours taken "},"errorcode":7052,"Response status":2}
Can you please let me know why this error occurred.
Below is the code for calling Api.
request.post( {
//url : "
https://people.zoho.com/people/api/leave/records?authtoken=MYTOKEN&inputType=json",
url :"
https://people.zoho.com/people/api/leave/records?authtoken=77b81ea5127dd27f7f694cfa8521543a&xmlData=<Request><Record><field name='Employee_ID'>344952000000092055</field><field name='To'>30-Jan-2016</field><field name='From'>31-Jan-2016</field><field name='Leavetype'>344952000000092147</field></Record></Request>",
headers:{
"Content-Type": "application/json"
}
},function(err,responce, responceData) {
//Bearer
console.log(" statusCode ",responce.statusCode);
console.log("responceData ",responceData);
});
Note : I am calling this API using node js