Aarkan
Aarkan

Reputation: 4109

Copying files using Google drive REST APIs

Using Google drive's REST APIs, is it possible to copy a file from one folder to another? I can see a webservice for move but not for copy. Please help.

Thanks in advance.

Upvotes: 1

Views: 5960

Answers (1)

JunYoung Gwak
JunYoung Gwak

Reputation: 2987

Yes, it is possible. Use Files.copy(). If you want to copy a file to different folder, put destination folder id to 'parents[]' in request body. There are sample codes for various languages you can try in the documentation.

Upvotes: 2

Related Questions