Update file
Google Drive Update File is a powerful AI tool that enables seamless updating of file metadata and content within your Google Drive. With comprehensive support for managing file details and revisions, it enhances your cloud file management experience.
Features
- Update file metadata including name, MIME type, and parents.
- Supports adding and removing parent folders efficiently.
- Allows uploading new content via file URL or local temporary directory.
- Option to keep revisions forever for important binary files.
- Supports OCR language hints for processing images and advanced indexing options.
Benefits
- Easily manage and organize files in Google Drive programmatically.
- Maintain file version control with revision pinning.
- Automate updates without manual intervention, saving time.
- Enhance file accessibility by setting indexable text from content.
- Integrate seamlessly with workflows via Pipedream and Google Drive APIs.
Description
Update a file's metadata and/or content. See the documentation for more information
IMPORTANT: The arguments have specific formats. Please follow the instructions below:
- addParents: Return JSON in this format: string[]
- removeParents: Return JSON in this format: string[]
Parameters
11 parameters
| Name | Type | Description |
|---|---|---|
| drive | string | Defaults to |
| fileIdrequired | string | The file to update |
| filePath | string | The file content to upload. Provide either a file URL or a path to a file in the |
| name | string | The new name of the file |
| mimeType | string | The file's MIME type (e.g., |
| addParents | string[] | A list of parent folder IDs to add |
| removeParents | string[] | A list of parent folder IDs to remove |
| 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 | enum | A language hint for OCR processing during image import (ISO 639-1 code) |
| useContentAsIndexableText | boolean | Whether to use the uploaded content as indexable text |
| advanced | object | Any additional parameters to pass in the request. See the documentation for all available parameters. |