Zoho Desk API Time Entry - Limited Success using commands
I have begun using some of the Ticket Time Entry API calls with limited success.
For example, This command returns good data:
curl -X GET
https://desk.zoho.com/api/v1/tickets/143060000002887087/timeEntry -H "orgId:12345" -H "Authorization:Zoho-authtoken 12345"
(for this post, I removed the actual org Id and auth token)
So I can retrieve any time entry data for a ticket, but I cannot add a time Entry to an existing ticket! That is my problem.
This is an example of the command I use, but the response is always "message: Unknown Error"
Example: This command generates error:
curl -X POST
https://desk.zoho.com/api/v1/tickets/143060000002887087/timeEntry -H "orgId:12345" -H "Authorization:Zoho-authtoken 12345" -d '{"secondsSpent":"21","executedTime":"2017-08-31T17:18:00.000Z","customFields":{"timeEntryName":"Time Entry Information"},"minutesSpent":"1","agentCostPerHour":null,"description":"Dale test time entry","hoursSpent":"3","ownerId":null,"requestChargeType":"Customer Service","additionalCost":null,"totalCost":"0.0"}'
Any suggestions as to what is likely causing the error?
Thanks for your help.