CopyResource
Duplicates a file or folder in Google Drive and places the copy in the specified destination path.
Input
| Name | Type | Description |
| Id | String | The unique identifier of the existing file or folder in Google Drive that will be duplicated. |
| NewName | String | Specifies the desired name for the copied file or folder in the target location. |
| ParentIDs | String | The unique identifier of the parent folder that will contain the new copy. If omitted, the copied resource retains the original parent folder. |
| IgnoreDefaultVisibility | Boolean | If the value is 'true', the file will not follow the domain's default visibility settings during creation. This can override domain-wide settings to keep the file private. |
| IncludeLabels | String | A comma-separated list of label IDs, such as lbl001, lbl002, lbl003, to include in the response's label information section. |
| IncludePermissionsForView | String | Defines which additional permission sets to include in the response. Currently, only the 'published' view is supported for inclusion. |
| KeepRevisionForever | Boolean | If the value is 'true', the newly created revision of the copied file will be marked to never expire. Applies only to binary files. A maximum of 200 such permanent revisions is allowed per file. |
| OCRLanguage | String | Provides a language code based on the ISO 639-1 standard (such as en, es, fr) to assist Optical Character Recognition (OCR) processing for image-based content. |
| SupportsAllDrives | Boolean | If the value is 'true', the application supports operations on both personal drives and shared drives. |
Result Set Columns
| Name | Type | Description |
| CopiedFileID | String | The unique identifier assigned to the newly copied file or folder in Google Drive. |
| Success | Boolean | If the value is 'true', the copy operation completed successfully. If 'false', an error occurred during the process. |