Actions17
File → Update
AI-generatedSummary
Updates an existing Google Drive file: rename it, replace its binary content, set metadata properties, move it to trash, and choose which file fields to return.
Inputs
- Authentication — Credential mode: OAuth2 (recommended) or Service Account.
- File to Update (required) — The Drive file to update. Choose from a searchable file list, paste a Drive file link, or provide the file ID.
- Change File Content — When true, replaces the file's content with the binary data in the specified input field.
- Input Data Field Name — Name of the binary input field containing the new file content. Visible only when Change File Content is enabled.
- New Updated File Name — New name for the file. Leave empty to keep the current name.
- Options — Optional settings: APP Properties (private key-value pairs), Properties (public key-value pairs), Keep Revision Forever (pins the new revision for binary files; max 200 pinned revisions), OCR Language (ISO 639-1 language hint for OCR during image import), Use Content As Indexable Text, Move to Trash (owner only), and Return Fields (select returned file fields).
Output shape
JSON object
Returns the updated file object returned by the Drive API, limited to the fields selected in Return Fields when provided.