Zoho Desk Attachment

Zoho Desk Attachment

I have a form in Creator that collects information and creates a ticket in Desk. I would also like to attach a file to the ticket using the File Upload form input, but I am not finding much information on how to make that API call. My code for the Create Ticket Attachment call is:

attachmentInfo = Map();
attachmentInfo.put("file",input.File_upload);

response = invokeurl
[
url :"https://desk.zoho.com/api/v1/tickets/" + ticketId + "/attachments"
type :POST
parameters:attachmentInfo
headers:{"orgId":#########}
connection:"zoho_desk_tickets"
];

The result 

{"errorCode":"UNPROCESSABLE_ENTITY","message":"Extra query parameter 'file' is present in the input."}

If the file isn’t passed as a query parameter, how should it be passed?

Thanks for your help.
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

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

                            Zoho CRM コンテンツ




                              ご検討中の方