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
- PortalID = "725833080";
- ProjectID = "1688514000000448005";
- TaskID = "1688514000000558005";
- getrcords = invokeurl
- [
- url :"http://insight.dev.schoolwires.com/HelpAssets/C2Assets/C2Files/C2ImportCalEventSample.csv"
- type :GET
- ];
- getrcords.setParamName("file");
- paramap = Map();
- paramap.put("uploaddoc",getrcords);
- hearmap = Map();
- hearmap.put("Content Type","application/json");
- ProjectDetails = invokeurl
- [
- url :"https://projectsapi.zoho.com/restapi/portal/" + PortalID + "/projects/" + ProjectID + "/tasks/" + TaskID + "/attachments/"
- type :POST
- parameters:getrcords.toString()
- connection:"zohoprojects"
- ];
- info ProjectDetails;
Team, please check what is the issue with the API.
Response:{"thirdparty_attachments":[],"TASK_DOCS":[]}
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