Add file when creating ticket in desk.zoho.com/api

Add file when creating ticket in desk.zoho.com/api

I am building a system to add tickets through the API.

There is the option for uploads as a list in the create ticket API call; however I seem to be unable to include a file when creating a ticket. I get UNSUPPORTED MEDIA TYPE if the content-type header is application/json - and I get no response (and no ticket) if the content-type is multipart/form-data and the closest I can find to support is this 2 year old ticket using I think a different version of the API: Here

Perhaps I'm doing this wrong- but is the only way to include a file on a newly created ticket with APIs to upload the file first through it's own API call and include the id of the upload as that list for uploads in the new API ticket? Or do I have to create ticket, create the upload, then relate the upload ID to the ticket ID with the assign upload API route for 3 separate API calls?

Thanks in advance

    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