Zoho Desk Attachments to Zoho WorkDrive

Zoho Desk Attachments to Zoho WorkDrive

Hi,
I have a requirement to upload attachments to WorkDrive when threads are created in Desk tickets.  I have a custom function correctly identifying the attachment URLs (which I am able to open in a browser) and am trying to use these URLs to upload to WorkDrive.  I am successfully connecting to the API but get a response:
  1. {"id":"F000","title":"LESS_THAN_MIN_OCCURANCE"}
Here is my code snippet:
  1. fileName = attachment.get("name");
  2.     fileUrl = attachment.get("href") + "?orgId=" + ORGID;
  3. stringURL = "https://www.zohoapis.com/workdrive/api/v1/upload";
  4. uploadMap = Map();
  5. uploadMap.put("parent_id","<FOLDER ID IS HERE>");
  6. uploadMap.put("content",fileUrl);
  7. uploadMap.put("filename",fileName);
  8. attributesMap = Map();
  9. attributesMap.put("attributes",uploadMap);
  10. attributesMap.put("type","files");
  11. dataMap = Map();
  12. dataMap.put("data",attributesMap);
  13. parameters = dataMap.toString();
  14. info parameters;
  15. mp = Map();
  16. mp.put("Accept","application/vnd.api+json");
  17. response = invokeurl
  18. [
  19. url : stringURL
  20. type : POST
  21. parameters:parameters
  22. headers: mp
  23. connection: "zworkdrive"
  24. ];
  25. info response;
Any idea what I am doing wrong or even if this is possible?  Does the file need to be local or can it be via a URL as per my requirement?

Thanks!