Upload An Attachment in Zoho Projects Task - API

Upload An Attachment in Zoho Projects Task - API

Hello Team

I am trying to upload an Attachment in Zoho Projects Task by the API but this is not working can you please check the code that I am missing in this?

Sample Code
  1. PortalID = "725833080";
  2. ProjectID = "1688514000000448005";
  3. TaskID = "1688514000000558005";
  4. getrcords = invokeurl
  5. [
  6. url :"http://insight.dev.schoolwires.com/HelpAssets/C2Assets/C2Files/C2ImportCalEventSample.csv"
  7. type :GET
  8. ];
  9. getrcords.setParamName("file");
  10. paramap = Map();
  11. paramap.put("uploaddoc",getrcords);
  12. hearmap = Map();
  13. hearmap.put("Content Type","application/json");
  14. ProjectDetails = invokeurl
  15. [
  16. url :"https://projectsapi.zoho.com/restapi/portal/" + PortalID + "/projects/" + ProjectID + "/tasks/" + TaskID + "/attachments/"
  17. type :POST
  18. parameters:getrcords.toString()
  19. connection:"zohoprojects"
  20. ];
  21. info ProjectDetails;
Team, please check what is the issue with the API.


Apart from this if there is anything required from my side please let me know, I will feel Happy to help you.

Thanks & Regards
Piyush Goyal

                          Zoho Desk Resources

                          • Desk Community Learning Series

                          • Digest

                          • Functions

                          • Meetups

                          • Kbase

                          • Resources

                          • Glossary

                          • Desk Marketplace

                          • MVP Corner

                          • Word of the Day

                              Zoho Marketing Automation

                                      • Sticky Posts

                                      • Building extensions #6: Custom user interfaces with Widgets

                                        Welcome to our post on Widgets for Zoho Projects! In our last post, we explored the significance of the connections feature, showed how to use it, and provided an example use case. In this article, we'll look at the importance of widgets, another feature
                                      • Building extensions #5: Integrating applications with Zoho Projects through Connections

                                        In our last post, we discussed the essential features that a Zoho Projects extension can provide. Starting with this post andin every subsequent post going forward, we'll go through each of those features in depth, one by one, with an example use case.
                                      • Building extensions #4: Fundamental features of a Zoho Projects extension

                                        Hello everyone! Thank you for visiting our Building Extensions series. As part of this series, we've already covered how to use the Sigma cloud editor and the ZET CLI to create, test, and publish extensions for Zoho Projects. You can refer to our earlier
                                      • Announcing the Zoho Projects API

                                        Today we're excited to announce the API for Zoho Projects where any developer can extend the project management and collaboration capabilities through our APIs and can build their own customized applications for their business needs. We've tried to make the API follow the REST (Representational State Transfer) principles and generate a XML/ JSON object which allows you to access / read / write Zoho Projects data from third-party systems like Google/Yahoo gadgets, web sites, billing & invoicing systems,
                                      • Have you moved to REST API?

                                        Dear API Users, The Documentation of our Rest API is available here . All future development will be done to this version. We are deprecating the older API today. Its documentation will no longer be available and we will also be stopping the calls to this API soon. Thanks, Prasanna

                                      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 WorkDrive Resources

                                                                  Zoho Campaigns Resources

                                                                    Zoho CRM Resources

                                                                    • CRM Community Learning Series

                                                                      CRM Community Learning Series

                                                                    • Tips


                                                                    • Functions


                                                                    • Meetups


                                                                    • Kbase


                                                                    • Resources


                                                                    • Digest


                                                                    • CRM Marketplace

                                                                      CRM Marketplace

                                                                    • MVP Corner

                                                                      MVP Corner

                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now