Zoho Flow invokeurl /api/forms/json/leave/updateRecord error "Missing parameter(s) in the request"

Zoho Flow invokeurl /api/forms/json/leave/updateRecord error "Missing parameter(s) in the request"

Hi,

I executed this in Zoho Flow to update a Leave Record in Zoho People :-
========================================
UpdateLeaveRecord = invokeurl
[
url :"https://people.zoho.com/people/api/forms/json/leave/updateRecord"
type :POST
parameters:UpdateRecord.toMap()
connection:"internal--zohopeople"
];
========================================

I received the following reply :-
========================================
"response": {
"message": "Error occurred",
"uri": "/api/forms/json/leave/updateRecord",
"errors": {
"code": 7019,
"message": "Missing parameter(s) in the request"
},
"status": 1
}
========================================

An example of the parameters passed in this command (values removed) :-
========================================
{
"customUpdateLeaveRecord_27": {
"GCalID": "xxxxxxxxxxxxxxxxxxxx",
"Employee_ID": "xxxxxxxxxxxxxxxxxxxx",
"DayDetails": {
"05-Jul-2021": {
"LeaveCount": 0.5,
"Session": 1
}
},
"Leavetype.ID": xxxxxxxxxxxxxxxxxxxx,
"From": "05-Jul-2021",
"Unit": "Day",
"ApprovalStatus": "Pending",
"Daystaken": 0.5,
"Reasonforleave": "",
"TeamEmailID": "",
"Leavetype": "No Pay Leave",
"To": "05-Jul-2021",
"Employee_ID.ID": xxxxxxxxxxxxxxxxxxxx,
"DateOfRequest": "16-May-2021"
}
}
========================================


I obtained the template for the keys and values for Leave record above by executing a GET command and following the formats exactly.

Anyone can assist to highlight what other parameters are required to update a Leave record successfully?

Thanks in advance!

Best regards,


Shahnan