Google Drive Custom icon

Google Drive Custom

Interact with Google Drive API with auto-refreshing token

Actions9

File → Copy

AI-generated

Summary

Copy a file in Google Drive by specifying its file ID, optionally renaming it or changing its parent folder.

Inputs

  • Authentication — Choose the authentication method: either 'Refresh Token (Auto-Refresh)' to use stored credentials with automatic token refresh, or 'Bearer Token (Manual)' to use a manual token.
  • File ID (required) — The ID of the file to copy.
  • Options — Optional additional parameters including 'New Name' for renaming the copied file, 'Parent Folder ID' to specify a new parent folder, and 'Custom Refresh Token' to override the stored refresh token if using refresh token authentication.

Output shape

a single JSON object representing the newly copied file's metadata

The operation returns the Google Drive API response for the copied file, which includes details such as the new file ID and name. Errors during execution may cause the node to throw unless 'Continue On Fail' is enabled, in which case error details will be included in output.

Discussion