Zoho Desk API Time Entry - Limited Success using commands

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.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now