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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| File ID | String | No | File to copy; or give item_path instead. | |
| Name | String | No | Name of the copy; Drive's default when empty. | |
| Folder ID | String | No | Folder for the copy; next to the original when empty. | |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. | |
| Item path | String | No | Path of the file under My Drive, used instead of file_id. | |
| Destination path | String | No | Path of the folder for the copy under My Drive, used instead of folder_id. |
Outputs
| Output | Type | What it is |
|---|---|---|
| file_id | String | Id of the copy. |