Tool

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.

google_drive

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

NameTypeDescription
drivestring

Defaults to My Drive. To select a Shared Drive instead, select it from this list.

fileIdrequiredstring

The file to update

filePathstring

The file content to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.txt)

namestring

The new name of the file

mimeTypestring

The file's MIME type (e.g., image/jpeg). The value cannot be changed unless a new revision is uploaded.

addParentsstring[]

A list of parent folder IDs to add

removeParentsstring[]

A list of parent folder IDs to remove

keepRevisionForeverboolean

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.

ocrLanguageenum

A language hint for OCR processing during image import (ISO 639-1 code)

useContentAsIndexableTextboolean

Whether to use the uploaded content as indexable text

advancedobject

Any additional parameters to pass in the request. See the documentation for all available parameters.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy