Parameter |
Label |
Required |
Options |
Description |
Id |
File Id |
YES |
|
Id of a file you want to update
|
DiskFilePath |
DiskFilePath |
YES |
|
A disk file path you want to update file contents with
|
keepRevisionForever |
KeepRevisionForever |
NO |
|
Defines whether uploaded file has revisions
|
addParents |
AddParents |
NO |
|
A comma-separated list of parent IDs to add
|
ocrLanguage |
OcrLanguage |
NO |
|
A language hint for OCR processing during image import (ISO 639-1 code).
|
useContentAsIndexableText |
UseContentAsIndexableText |
NO |
|
Whether to use the uploaded content as indexable text.
|
DriveId |
Shared DriveId |
NO |
|
By default file lists from MyDrive but if you like to search other Shared drive (formally known as Team drive) then set this parameter.
|
DriveType |
Drive Type |
YES |
Option |
Value |
My Drive |
user |
Shared Drive |
drive |
|
Default search context is User's drive. Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive', and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. By default, corpora is set to 'user'. However, this can change depending on the filter set through the 'Query' parameter.
|
SupportsAllDrives |
Supports all drives (e.g. My and Shared) |
NO |
Option |
Value |
true |
true |
false |
false |
|
Whether the requesting application supports both My Drives and shared drives.
|