POST
gdrive_files_copy.py
from charter.packs import gdrive
result = await gdrive.files_copy.ainvoke({"fileId": ..., "file": ...})
Requires
https://www.googleapis.com/auth/drive. Costs 1 against the provider’s own quota.Path parameters
| Field | Type | Description |
|---|---|---|
fileId * | string | The ID of the file. |
Query parameters
| Field | Type | Description |
|---|---|---|
ignoreDefaultVisibility | boolean | Whether to ignore the domain’s default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. |
keepRevisionForever | boolean | Whether to set the keepForever field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. |
ocrLanguage | string | A language hint for OCR processing during image import (ISO 639-1 code). |
copyComments | boolean | Whether to copy the comments associated with the file. |
includePermissionsForView | string | Specifies which additional view’s permissions to include in the response. Only published is supported. |
includeLabels | string | A comma-separated list of IDs of labels to include in the labelInfo part of the response. |
supportsAllDrives | boolean | Whether the requesting application supports both My Drives and shared drives. |
Body
| Field | Type | Description |
|---|---|---|
file * | File | The file resource to apply on the copy, with patch semantics. Typically name and optionally parents. If parents is omitted, the copy inherits any discoverable parent of the source file. |