Skip to main content

Copy Drive file

Make a copy of a Drive file, optionally renamed or in another folder.

Command in the Google Workspace toolkit · id ooa.google/drive_copy_file · 7 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
File IDStringNoFile to copy; or give item_path instead.
NameStringNoName of the copy; Drive's default when empty.
Folder IDStringNoFolder for the copy; next to the original when empty.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.
Item pathStringNoPath of the file under My Drive, used instead of file_id.
Destination pathStringNoPath of the folder for the copy under My Drive, used instead of folder_id.

Outputs​

OutputTypeWhat it is
file_idStringId of the copy.