update_file
Updates file metadata (name, date) by fileId. Wraps the updateFile RPC.
Description
Updates file metadata (name, date) by fileId. Wraps the updateFile RPC.
Get fileId from list_files.
If fileId is unknown, pass fileName (current name or hint like "June receipt"); every hint word must match a whole word of the file name, and more than one match returns the candidates to ask about.
If fileFieldMasks is omitted, masks are inferred from the provided file fields.
After updating, call list_files to verify the new values.Input parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | object | Yes | |
fileFieldMasks | array | No | |
fileId | string | No | |
fileName | string | No |