People API - Leave View

People API - Leave View

Hi All,

I have a small issue in applying leave using the API. Once I have submit a POST request, I am getting an error called;

[
    {
        "message": [
            {
                "otherErrors": "Problem while adding data."
            }
        ],
        "Response": 2,
        "code": 7033
    }
]

URLhttps://people.zoho.com/people/api/leave/records

Data submitted:
--------------------

xmlData=<Request><Record><field name='Employee_ID'>1</field><field name='To'>11-Sep-2014</field><field name='From'>11-Sep-2014</field><field name='Leavetype'>Vacation</field><field name='Daystaken'>1</field></Record></Request>

Can you please let me know what I am missing here?

Regards,

Azeez