Workdrive API invokeUrl - Move Multiple Files permission problem

Workdrive API invokeUrl - Move Multiple Files permission problem

Hello, I am having an issue when attempting to move multiple workdrive files from a CRM function. Referencing this documentation here: Zoho WorkDrive API Documentation

My response:
Function executed successfully
  • {"errors":[{"id":"R510","title":"User does not have permission to move this resource"}]}
My connection has a lot of the workdrive scopes available so I am not sure why there is something wrong with my permissions.

Sample function below:
  1. doc_ids = [abc111,abc222,abc333]
  2. data_list = list();
  3. for each  doc_id in doc_ids
  4. {
  5. inner_map = Map();
  6. attribute_map = Map();
  7. attribute_map.put("parent_id","parent123");
  8. inner_map.put("attributes",attribute_map);
  9. inner_map.put("id",doc_id);
  10. inner_map.put("type","files");
  11. data_list.add(inner_map);
  12. }
  13. params_map = Map();
  14. params_map.put("data",data_list);
  15. header = Map();
  16. header.put("Accept","application/vnd.api+json");
  17. workdrive_response = invokeurl
  18. [
  19. url :"https://www.zohoapis.com/workdrive/api/v1/files"
  20. type :PATCH
  21. parameters:params_map.toString()
  22. headers:header
  23. connection:"testconnection"
  24. ];
  25. return workdrive_response;

My connection's scopes include:

WorkDrive.Collection.CREATE

WorkDrive.DataTemplates.DELETE

WorkDrive.collection.DELETE

WorkDrive.collection.READ

WorkDrive.comments.READ

WorkDrive.files.ALL

WorkDrive.files.CREATE

WorkDrive.files.DELETE

WorkDrive.files.READ

WorkDrive.files.UPDATE

WorkDrive.files.UPDATE

WorkDrive.files.sharing.CREATE

WorkDrive.files.sharing.DELETE

WorkDrive.files.sharing.READ

WorkDrive.files.sharing.UPDATE

WorkDrive.groups.CREATE

WorkDrive.groups.DELETE

WorkDrive.groups.READ

WorkDrive.groups.UPDATE

WorkDrive.labels.DELETE

WorkDrive.labels.READ

WorkDrive.labels.UPDATE

WorkDrive.libraries.CREATE

WorkDrive.libraries.READ

WorkDrive.libraries.UPDATE

WorkDrive.libraries.categories.CREATE

WorkDrive.libraries.categories.READ

WorkDrive.libraries.categories.UPDATE

WorkDrive.libraries.sharing.READ

WorkDrive.links.CREATE

WorkDrive.links.DELETE

WorkDrive.links.READ

WorkDrive.team.ALL

WorkDrive.team.admin.READ

WorkDrive.teamfolders.CREATE

WorkDrive.teamfolders.DELETE

WorkDrive.teamfolders.READ

WorkDrive.teamfolders.UPDATE

WorkDrive.teamfolders.sharing.CREATE

WorkDrive.teamfolders.sharing.DELETE

WorkDrive.teamfolders.sharing.READ

WorkDrive.teamfolders.sharing.UPDATE

WorkDrive.users.ALL

WorkDrive.users.CREATE

WorkDrive.users.READ

WorkDrive.users.UPDATE

WorkDrive.workspace.ALL

Workdrive.files.READ

ZohoFiles.files.CREATE

ZohoFiles.files.READ


Please let me know if there is more information I need to provide to help solve this issue!