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





                                                  Use cases

                                                  Make the most of Zoho Desk with the use cases.

                                                   
                                                    

                                                  eBooks

                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho Desk.

                                                   
                                                    

                                                  Videos

                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho Desk.

                                                   
                                                    

                                                  Webinar

                                                  Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                   
                                                    
                                                  • Desk Community Learning Series


                                                  • Meetups


                                                  • Ask the Experts


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner






                                                            Manage your brands on social media



                                                                  Zoho TeamInbox Resources



                                                                      Zoho CRM Plus Resources

                                                                        Zoho Books Resources


                                                                          Zoho Subscriptions Resources

                                                                            Zoho Projects Resources


                                                                              Zoho Sprints Resources


                                                                                Qntrl Resources


                                                                                  Zoho Creator 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


                                                                                            Zoho Show Resources


                                                                                              Zoho Writer Writer

                                                                                              Get Started. Write Away!

                                                                                              Writer is a powerful online word processor, designed for collaborative work.

                                                                                                Zoho CRM コンテンツ








                                                                                                  Nederlandse Hulpbronnen


                                                                                                      ご検討中の方