Deluge Help

Move files

Overview

The zoho.docs.moveFile() task is used to move a file from it's source folder to a different folder in your Zoho Docs account.

Syntax

<response> = zoho.docs.moveFile(<FileID>,<FolderID>);​

where,
response - response returned as map from Zoho Docs.
FileID - The id of the file to be moved. It is of string data type.
FolderID - The id of the folder to which the file has to be moved to. It is of string data type

Example

The following script moves the specified file to the specified folder.

response = zoho.docs.moveFile("2cboca937f75ccbf9470191585448baa8d752","0kav58698776c2a8b465f86b5efef876c7d3b");

where,
2cboca937f75ccbf9470191585448baa8d752 - is the id of the file to be moved.
0kav58698776c2a8b465f86b5efef876c7d3b - is the id of the folder to which the file has to be moved to.

Sample Response

The response returned is of the following format

{  
   "response":{  
      "result":{  
         "message":"DOCUMENT_MOVED_SUCCESSFULLY"
      },
      "uri":"/files/v1/move"
   }
}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com