ZohoPeople API - Retrieve leave type IDs

ZohoPeople API - Retrieve leave type IDs

Hi All,

I have created a leave type in Zoho People UI. Now I need to fetch the  Leave Type ID of it. As per the documentation[1] I used the  curl request [2]. But I ended up with the error response from the API. 

{"response":{"message":"Error occurred","errors":{"message":"Server Error Occured","code":7031},"status":1,"uri":"/api/leave/getLeaveTypes"}}

The new API[3] does not tell anything on how to retrieve the Leave Type ID.  Have you done any changes to the API recently. If so please let me know how to get the  Leave Type ID.

Any help would be appreciated.

[1] https://help.zoho.com/portal/en/community/topic/people-api-leave-view
[2] curl -v -k -X POST https://people.zoho.com/people/api/leave/getLeaveTypes?authtoken=<Your Token here>
[3]  https://www.zoho.com/people/help/api/apimethods.html#12