Skip to main content

Google Drive

Read and write files to Google Drive.

Google Drive Logo

Authentication

This connector uses OAuth 2.0 authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use

Using the Smart Chat

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions

This connector provides 55 actions:

ActionPurposeParameters
operations_getGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.name (string) required
about_getGets information about the user, the user's Drive, and system capabilities. For more information, see Return user infohttps://developers.google.com/workspace/drive/api/guides/user-info. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter.No parameters
apps_getGets a specific app. For more information, see Return user infohttps://developers.google.com/workspace/drive/api/guides/user-info.appId (string) required
apps_listLists a user's installed apps. For more information, see Return user infohttps://developers.google.com/workspace/drive/api/guides/user-info.appFilterExtensions (string)
appFilterMimeTypes (string)
languageCode (string)
changes_get_start_page_tokenGets the starting pageToken for listing future changes. For more information, see Retrieve changeshttps://developers.google.com/workspace/drive/api/guides/manage-changes.driveId (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
teamDriveId (string)
changes_listLists the changes for a user or shared drive. For more information, see Retrieve changeshttps://developers.google.com/workspace/drive/api/guides/manage-changes.driveId (string)
includeCorpusRemovals (boolean)
includeItemsFromAllDrives (boolean)
includeRemoved (boolean)
includeTeamDriveItems (boolean)
pageSize (integer)
pageToken (string)
restrictToMyDrive (boolean)
spaces (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
teamDriveId (string)
includePermissionsForView (string)
includeLabels (string)
changes_watchSubscribes to changes for a user. For more information, see Notifications for resource changeshttps://developers.google.com/workspace/drive/api/guides/push.driveId (string)
includeCorpusRemovals (boolean)
includeItemsFromAllDrives (boolean)
includeRemoved (boolean)
includeTeamDriveItems (boolean)
pageSize (integer)
pageToken (string)
restrictToMyDrive (boolean)
spaces (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
teamDriveId (string)
includePermissionsForView (string)
includeLabels (string)
payload (boolean)
id (string)
resourceId (string)
resourceUri (string)
token (string)
expiration (string)
type (string)
address (string)
kind (string)
channels_stopStops watching resources through this channel. For more information, see Notifications for resource changeshttps://developers.google.com/workspace/drive/api/guides/push.payload (boolean)
id (string)
resourceId (string)
resourceUri (string)
token (string)
expiration (string)
type (string)
address (string)
kind (string)
comments_createCreates a comment on a file. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter.fileId (string) required
id (string)
kind (string)
createdTime (string)
modifiedTime (string)
resolved (boolean)
anchor (string)
replies (array)
author: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
deleted (boolean)
htmlContent (string)
content (string)
quotedFileContent: {
. mimeType (string)
. value (string)
} (object)
comments_deleteDeletes a comment. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments.fileId (string) required
commentId (string) required
comments_getGets a comment by ID. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter.fileId (string) required
commentId (string) required
includeDeleted (boolean)
comments_listLists a file's comments. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter.fileId (string) required
includeDeleted (boolean)
pageSize (integer)
pageToken (string)
startModifiedTime (string)
comments_updateUpdates a comment with patch semantics. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter.fileId (string) required
commentId (string) required
id (string)
kind (string)
createdTime (string)
modifiedTime (string)
resolved (boolean)
anchor (string)
replies (array)
author: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
deleted (boolean)
htmlContent (string)
content (string)
quotedFileContent: {
. mimeType (string)
. value (string)
} (object)
drives_createCreates a shared drive.requestId (string)
id (string)
name (string)
colorRgb (string)
kind (string)
backgroundImageLink (string)
capabilities: {
. canAddChildren (boolean)
. canComment (boolean)
. canCopy (boolean)
. canDeleteDrive (boolean)
. canDownload (boolean)
. canEdit (boolean)
. canListChildren (boolean)
. canManageMembers (boolean)
. canReadRevisions (boolean)
. canRename (boolean)
. canRenameDrive (boolean)
. canChangeDriveBackground (boolean)
. canShare (boolean)
. canChangeCopyRequiresWriterPermissionRestriction (boolean)
. canChangeDomainUsersOnlyRestriction (boolean)
. canChangeDriveMembersOnlyRestriction (boolean)
. canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean)
. canResetDriveRestrictions (boolean)
. canDeleteChildren (boolean)
. canTrashChildren (boolean)
. canChangeDownloadRestriction (boolean)
} (object)
themeId (string)
backgroundImageFile: {
. id (string)
. xCoordinate (number)
. yCoordinate (number)
. width (number)
} (object)
createdTime (string)
hidden (boolean)
restrictions: {
. copyRequiresWriterPermission (boolean)
. domainUsersOnly (boolean)
. driveMembersOnly (boolean)
. adminManagedRestrictions (boolean)
. sharingFoldersRequiresOrganizerPermission (boolean)
. downloadRestriction
} (object)
orgUnitId (string)
drives_deletePermanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.driveId (string) required
useDomainAdminAccess (boolean)
allowItemDeletion (boolean)
drives_getGets a shared drive's metadata by ID.driveId (string) required
useDomainAdminAccess (boolean)
drives_hideHides a shared drive from the default view.driveId (string) required
drives_listLists the user's shared drives. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives/workspace/drive/api/guides/search-shareddrives guide.pageSize (integer)
pageToken (string)
q (string)
useDomainAdminAccess (boolean)
drives_unhideRestores a shared drive to the default view.driveId (string) required
drives_updateUpdates the metadata for a shared drive.driveId (string) required
useDomainAdminAccess (boolean)
id (string)
name (string)
colorRgb (string)
kind (string)
backgroundImageLink (string)
capabilities: {
. canAddChildren (boolean)
. canComment (boolean)
. canCopy (boolean)
. canDeleteDrive (boolean)
. canDownload (boolean)
. canEdit (boolean)
. canListChildren (boolean)
. canManageMembers (boolean)
. canReadRevisions (boolean)
. canRename (boolean)
. canRenameDrive (boolean)
. canChangeDriveBackground (boolean)
. canShare (boolean)
. canChangeCopyRequiresWriterPermissionRestriction (boolean)
. canChangeDomainUsersOnlyRestriction (boolean)
. canChangeDriveMembersOnlyRestriction (boolean)
. canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean)
. canResetDriveRestrictions (boolean)
. canDeleteChildren (boolean)
. canTrashChildren (boolean)
. canChangeDownloadRestriction (boolean)
} (object)
themeId (string)
backgroundImageFile: {
. id (string)
. xCoordinate (number)
. yCoordinate (number)
. width (number)
} (object)
createdTime (string)
hidden (boolean)
restrictions: {
. copyRequiresWriterPermission (boolean)
. domainUsersOnly (boolean)
. driveMembersOnly (boolean)
. adminManagedRestrictions (boolean)
. sharingFoldersRequiresOrganizerPermission (boolean)
. downloadRestriction
} (object)
orgUnitId (string)
files_copyCreates a copy of a file and applies any requested updates with patch semantics.fileId (string) required
enforceSingleParent (boolean)
ignoreDefaultVisibility (boolean)
keepRevisionForever (boolean)
ocrLanguage (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
includePermissionsForView (string)
includeLabels (string)
kind (string)
driveId (string)
fileExtension (string)
copyRequiresWriterPermission (boolean)
md5Checksum (string)
contentHints: {
. indexableText (string)
. thumbnail (object)
} (object)
writersCanShare (boolean)
viewedByMe (boolean)
mimeType (string)
parents (array)
thumbnailLink (string)
iconLink (string)
shared (boolean)
lastModifyingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
owners (array)
headRevisionId (string)
sharingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
webViewLink (string)
webContentLink (string)
size (string)
viewersCanCopyContent (boolean)
permissions (array)
hasThumbnail (boolean)
spaces (array)
folderColorRgb (string)
id (string)
name (string)
description (string)
starred (boolean)
trashed (boolean)
explicitlyTrashed (boolean)
createdTime (string)
modifiedTime (string)
modifiedByMeTime (string)
viewedByMeTime (string)
sharedWithMeTime (string)
quotaBytesUsed (string)
version (string)
originalFilename (string)
ownedByMe (boolean)
fullFileExtension (string)
isAppAuthorized (boolean)
teamDriveId (string)
capabilities: {
. canChangeViewersCanCopyContent (boolean)
. canMoveChildrenOutOfDrive (boolean)
. canReadDrive (boolean)
. canEdit (boolean)
. canCopy (boolean)
. canComment (boolean)
. canAddChildren (boolean)
. canDelete (boolean)
. canDownload (boolean)
. canListChildren (boolean)
. canRemoveChildren (boolean)
. canRename (boolean)
. canTrash (boolean)
. canReadRevisions (boolean)
. canReadTeamDrive (boolean)
. canMoveTeamDriveItem (boolean)
. canChangeCopyRequiresWriterPermission (boolean)
. canMoveItemIntoTeamDrive (boolean)
. canUntrash (boolean)
. canModifyContent (boolean)
. canMoveItemWithinTeamDrive (boolean)
. canMoveItemOutOfTeamDrive (boolean)
. canDeleteChildren (boolean)
. canMoveChildrenOutOfTeamDrive (boolean)
. canMoveChildrenWithinTeamDrive (boolean)
. canTrashChildren (boolean)
. canMoveItemOutOfDrive (boolean)
. canAddMyDriveParent (boolean)
. canRemoveMyDriveParent (boolean)
. canMoveItemWithinDrive (boolean)
. canShare (boolean)
. canMoveChildrenWithinDrive (boolean)
. canModifyContentRestriction (boolean)
. canAddFolderFromAnotherDrive (boolean)
. canChangeSecurityUpdateEnabled (boolean)
. canAcceptOwnership (boolean)
. canReadLabels (boolean)
. canModifyLabels (boolean)
. canModifyEditorContentRestriction (boolean)
. canModifyOwnerContentRestriction (boolean)
. canRemoveContentRestriction (boolean)
. canDisableInheritedPermissions (boolean)
. canEnableInheritedPermissions (boolean)
. canChangeItemDownloadRestriction (boolean)
} (object)
hasAugmentedPermissions (boolean)
trashingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
thumbnailVersion (string)
trashedTime (string)
modifiedByMe (boolean)
permissionIds (array)
imageMediaMetadata: {
. flashUsed (boolean)
. meteringMode (string)
. sensor (string)
. exposureMode (string)
. colorSpace (string)
. whiteBalance (string)
. width (integer)
. height (integer)
. location (object)
. rotation (integer)
. time (string)
. cameraMake (string)
. cameraModel (string)
. exposureTime (number)
. aperture (number)
. focalLength (number)
. isoSpeed (integer)
. exposureBias (number)
. maxApertureValue (number)
. subjectDistance (integer)
. lens (string)
} (object)
videoMediaMetadata: {
. width (integer)
. height (integer)
. durationMillis (string)
} (object)
shortcutDetails: {
. targetId (string)
. targetMimeType (string)
. targetResourceKey (string)
} (object)
contentRestrictions (array)
resourceKey (string)
linkShareMetadata: {
. securityUpdateEligible (boolean)
. securityUpdateEnabled (boolean)
} (object)
labelInfo: {
. labels (array)
} (object)
sha1Checksum (string)
sha256Checksum (string)
inheritedPermissionsDisabled (boolean)
downloadRestrictions: {
. itemDownloadRestriction (object)
. effectiveDownloadRestrictionWithContext (object)
} (object)
files_createCreates a new file. Maximum file size: 5,120 GB - Accepted Media MIME types:/ Apps should specify a file extension in the name property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like cat.jpg in the metadata. Example usage: params = name: dados_de_vendas.csv, mimeType: text/csv, description: Sales data file, fileContent: base64_encoded_file_content. Common MIME types: application/vnd.openxmlformats-officedocument.spreadsheetml.sheenforceSingleParent (boolean)
ignoreDefaultVisibility (boolean)
keepRevisionForever (boolean)
ocrLanguage (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
useContentAsIndexableText (boolean)
includePermissionsForView (string)
includeLabels (string)
kind (string)
driveId (string)
fileExtension (string)
copyRequiresWriterPermission (boolean)
md5Checksum (string)
contentHints: {
. indexableText (string)
. thumbnail (object)
} (object)
writersCanShare (boolean)
viewedByMe (boolean)
mimeType (string)
parents (array)
thumbnailLink (string)
iconLink (string)
shared (boolean)
lastModifyingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
owners (array)
headRevisionId (string)
sharingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
webViewLink (string)
webContentLink (string)
size (string)
viewersCanCopyContent (boolean)
permissions (array)
hasThumbnail (boolean)
spaces (array)
folderColorRgb (string)
id (string)
name (string)
description (string)
starred (boolean)
trashed (boolean)
explicitlyTrashed (boolean)
createdTime (string)
modifiedTime (string)
modifiedByMeTime (string)
viewedByMeTime (string)
sharedWithMeTime (string)
quotaBytesUsed (string)
version (string)
originalFilename (string)
ownedByMe (boolean)
fullFileExtension (string)
isAppAuthorized (boolean)
teamDriveId (string)
capabilities: {
. canChangeViewersCanCopyContent (boolean)
. canMoveChildrenOutOfDrive (boolean)
. canReadDrive (boolean)
. canEdit (boolean)
. canCopy (boolean)
. canComment (boolean)
. canAddChildren (boolean)
. canDelete (boolean)
. canDownload (boolean)
. canListChildren (boolean)
. canRemoveChildren (boolean)
. canRename (boolean)
. canTrash (boolean)
. canReadRevisions (boolean)
. canReadTeamDrive (boolean)
. canMoveTeamDriveItem (boolean)
. canChangeCopyRequiresWriterPermission (boolean)
. canMoveItemIntoTeamDrive (boolean)
. canUntrash (boolean)
. canModifyContent (boolean)
. canMoveItemWithinTeamDrive (boolean)
. canMoveItemOutOfTeamDrive (boolean)
. canDeleteChildren (boolean)
. canMoveChildrenOutOfTeamDrive (boolean)
. canMoveChildrenWithinTeamDrive (boolean)
. canTrashChildren (boolean)
. canMoveItemOutOfDrive (boolean)
. canAddMyDriveParent (boolean)
. canRemoveMyDriveParent (boolean)
. canMoveItemWithinDrive (boolean)
. canShare (boolean)
. canMoveChildrenWithinDrive (boolean)
. canModifyContentRestriction (boolean)
. canAddFolderFromAnotherDrive (boolean)
. canChangeSecurityUpdateEnabled (boolean)
. canAcceptOwnership (boolean)
. canReadLabels (boolean)
. canModifyLabels (boolean)
. canModifyEditorContentRestriction (boolean)
. canModifyOwnerContentRestriction (boolean)
. canRemoveContentRestriction (boolean)
. canDisableInheritedPermissions (boolean)
. canEnableInheritedPermissions (boolean)
. canChangeItemDownloadRestriction (boolean)
} (object)
hasAugmentedPermissions (boolean)
trashingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
thumbnailVersion (string)
trashedTime (string)
modifiedByMe (boolean)
permissionIds (array)
imageMediaMetadata: {
. flashUsed (boolean)
. meteringMode (string)
. sensor (string)
. exposureMode (string)
. colorSpace (string)
. whiteBalance (string)
. width (integer)
. height (integer)
. location (object)
. rotation (integer)
. time (string)
. cameraMake (string)
. cameraModel (string)
. exposureTime (number)
. aperture (number)
. focalLength (number)
. isoSpeed (integer)
. exposureBias (number)
. maxApertureValue (number)
. subjectDistance (integer)
. lens (string)
} (object)
videoMediaMetadata: {
. width (integer)
. height (integer)
. durationMillis (string)
} (object)
shortcutDetails: {
. targetId (string)
. targetMimeType (string)
. targetResourceKey (string)
} (object)
contentRestrictions (array)
resourceKey (string)
linkShareMetadata: {
. securityUpdateEligible (boolean)
. securityUpdateEnabled (boolean)
} (object)
labelInfo: {
. labels (array)
} (object)
sha1Checksum (string)
sha256Checksum (string)
inheritedPermissionsDisabled (boolean)
downloadRestrictions: {
. itemDownloadRestriction (object)
. effectiveDownloadRestrictionWithContext (object)
} (object)
files_deletePermanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive, the user must be an organizer on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.fileId (string) required
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
enforceSingleParent (boolean)
files_empty_trashPermanently deletes all of the user's trashed files.enforceSingleParent (boolean)
driveId (string)
files_exportExports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.fileId (string) required
mimeType (string)
files_generate_idsGenerates a set of file IDs which can be provided in create or copy requests.count (integer)
space (string)
type (string)
files_getGets a file's metadata or content by ID. If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export/workspace/drive/api/reference/rest/v3/files/export instead. For more information, see Download and export files/workspace/drive/api/guides/manage-downloads.fileId (string) required
acknowledgeAbuse (boolean)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
includePermissionsForView (string)
includeLabels (string)
files_listLists the user's files. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for files and folders/workspace/drive/api/guides/search-files guide. Note: This method returns all files by default, including trashed files. If you don't want trashed files to appear in the list, use the trashed=false query parameter to remove trashed files from the results.corpora (string)
corpus (string)
driveId (string)
includeItemsFromAllDrives (boolean)
includeTeamDriveItems (boolean)
orderBy (string)
pageSize (integer)
pageToken (string)
q (string)
spaces (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
teamDriveId (string)
includePermissionsForView (string)
includeLabels (string)
files_list_labelsLists the labels on a file.fileId (string) required
maxResults (integer)
pageToken (string)
files_modify_labelsModifies the set of labels applied to a file. Returns a list of the labels that were added or modified.fileId (string) required
labelModifications (array)
kind (string)
files_updateUpdates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as modifiedDate. This method supports patch semantics. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types:/ Note: Specify a valid MIME type, rather than the literal / value. The literal / is onfileId (string) required
addParents (string)
enforceSingleParent (boolean)
keepRevisionForever (boolean)
ocrLanguage (string)
removeParents (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
useContentAsIndexableText (boolean)
includePermissionsForView (string)
includeLabels (string)
kind (string)
driveId (string)
fileExtension (string)
copyRequiresWriterPermission (boolean)
md5Checksum (string)
contentHints: {
. indexableText (string)
. thumbnail (object)
} (object)
writersCanShare (boolean)
viewedByMe (boolean)
mimeType (string)
parents (array)
thumbnailLink (string)
iconLink (string)
shared (boolean)
lastModifyingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
owners (array)
headRevisionId (string)
sharingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
webViewLink (string)
webContentLink (string)
size (string)
viewersCanCopyContent (boolean)
permissions (array)
hasThumbnail (boolean)
spaces (array)
folderColorRgb (string)
id (string)
name (string)
description (string)
starred (boolean)
trashed (boolean)
explicitlyTrashed (boolean)
createdTime (string)
modifiedTime (string)
modifiedByMeTime (string)
viewedByMeTime (string)
sharedWithMeTime (string)
quotaBytesUsed (string)
version (string)
originalFilename (string)
ownedByMe (boolean)
fullFileExtension (string)
isAppAuthorized (boolean)
teamDriveId (string)
capabilities: {
. canChangeViewersCanCopyContent (boolean)
. canMoveChildrenOutOfDrive (boolean)
. canReadDrive (boolean)
. canEdit (boolean)
. canCopy (boolean)
. canComment (boolean)
. canAddChildren (boolean)
. canDelete (boolean)
. canDownload (boolean)
. canListChildren (boolean)
. canRemoveChildren (boolean)
. canRename (boolean)
. canTrash (boolean)
. canReadRevisions (boolean)
. canReadTeamDrive (boolean)
. canMoveTeamDriveItem (boolean)
. canChangeCopyRequiresWriterPermission (boolean)
. canMoveItemIntoTeamDrive (boolean)
. canUntrash (boolean)
. canModifyContent (boolean)
. canMoveItemWithinTeamDrive (boolean)
. canMoveItemOutOfTeamDrive (boolean)
. canDeleteChildren (boolean)
. canMoveChildrenOutOfTeamDrive (boolean)
. canMoveChildrenWithinTeamDrive (boolean)
. canTrashChildren (boolean)
. canMoveItemOutOfDrive (boolean)
. canAddMyDriveParent (boolean)
. canRemoveMyDriveParent (boolean)
. canMoveItemWithinDrive (boolean)
. canShare (boolean)
. canMoveChildrenWithinDrive (boolean)
. canModifyContentRestriction (boolean)
. canAddFolderFromAnotherDrive (boolean)
. canChangeSecurityUpdateEnabled (boolean)
. canAcceptOwnership (boolean)
. canReadLabels (boolean)
. canModifyLabels (boolean)
. canModifyEditorContentRestriction (boolean)
. canModifyOwnerContentRestriction (boolean)
. canRemoveContentRestriction (boolean)
. canDisableInheritedPermissions (boolean)
. canEnableInheritedPermissions (boolean)
. canChangeItemDownloadRestriction (boolean)
} (object)
hasAugmentedPermissions (boolean)
trashingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
thumbnailVersion (string)
trashedTime (string)
modifiedByMe (boolean)
permissionIds (array)
imageMediaMetadata: {
. flashUsed (boolean)
. meteringMode (string)
. sensor (string)
. exposureMode (string)
. colorSpace (string)
. whiteBalance (string)
. width (integer)
. height (integer)
. location (object)
. rotation (integer)
. time (string)
. cameraMake (string)
. cameraModel (string)
. exposureTime (number)
. aperture (number)
. focalLength (number)
. isoSpeed (integer)
. exposureBias (number)
. maxApertureValue (number)
. subjectDistance (integer)
. lens (string)
} (object)
videoMediaMetadata: {
. width (integer)
. height (integer)
. durationMillis (string)
} (object)
shortcutDetails: {
. targetId (string)
. targetMimeType (string)
. targetResourceKey (string)
} (object)
contentRestrictions (array)
resourceKey (string)
linkShareMetadata: {
. securityUpdateEligible (boolean)
. securityUpdateEnabled (boolean)
} (object)
labelInfo: {
. labels (array)
} (object)
sha1Checksum (string)
sha256Checksum (string)
inheritedPermissionsDisabled (boolean)
downloadRestrictions: {
. itemDownloadRestriction (object)
. effectiveDownloadRestrictionWithContext (object)
} (object)
files_watchSubscribes to changes to a file.fileId (string) required
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
acknowledgeAbuse (boolean)
includePermissionsForView (string)
includeLabels (string)
payload (boolean)
id (string)
resourceId (string)
resourceUri (string)
token (string)
expiration (string)
type (string)
address (string)
kind (string)
files_downloadDownloads content of a file. Operations are valid for 24 hours from the time of creation.fileId (string) required
mimeType (string)
revisionId (string)
permissions_createCreates a permission for a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.fileId (string) required
emailMessage (string)
enforceSingleParent (boolean)
moveToNewOwnersRoot (boolean)
sendNotificationEmail (boolean)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
transferOwnership (boolean)
useDomainAdminAccess (boolean)
enforceExpansiveAccess (boolean)
id (string)
displayName (string)
type (string)
kind (string)
permissionDetails (array)
photoLink (string)
emailAddress (string)
role (string)
allowFileDiscovery (boolean)
domain (string)
expirationTime (string)
teamDrivePermissionDetails (array)
deleted (boolean)
view (string)
pendingOwner (boolean)
inheritedPermissionsDisabled (boolean)
permissions_deleteDeletes a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.fileId (string) required
permissionId (string) required
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
useDomainAdminAccess (boolean)
enforceExpansiveAccess (boolean)
permissions_getGets a permission by ID.fileId (string) required
permissionId (string) required
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
useDomainAdminAccess (boolean)
permissions_listLists a file's or shared drive's permissions.fileId (string) required
pageSize (integer)
pageToken (string)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
useDomainAdminAccess (boolean)
includePermissionsForView (string)
permissions_updateUpdates a permission with patch semantics. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.fileId (string) required
permissionId (string) required
removeExpiration (boolean)
supportsAllDrives (boolean)
supportsTeamDrives (boolean)
transferOwnership (boolean)
useDomainAdminAccess (boolean)
enforceExpansiveAccess (boolean)
id (string)
displayName (string)
type (string)
kind (string)
permissionDetails (array)
photoLink (string)
emailAddress (string)
role (string)
allowFileDiscovery (boolean)
domain (string)
expirationTime (string)
teamDrivePermissionDetails (array)
deleted (boolean)
view (string)
pendingOwner (boolean)
inheritedPermissionsDisabled (boolean)
replies_createCreates a reply to a comment.fileId (string) required
commentId (string) required
id (string)
kind (string)
createdTime (string)
modifiedTime (string)
action (string)
author: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
deleted (boolean)
htmlContent (string)
content (string)
replies_deleteDeletes a reply.fileId (string) required
commentId (string) required
replyId (string) required
replies_getGets a reply by ID.fileId (string) required
commentId (string) required
replyId (string) required
includeDeleted (boolean)
replies_listLists a comment's replies.fileId (string) required
commentId (string) required
includeDeleted (boolean)
pageSize (integer)
pageToken (string)
replies_updateUpdates a reply with patch semantics.fileId (string) required
commentId (string) required
replyId (string) required
id (string)
kind (string)
createdTime (string)
modifiedTime (string)
action (string)
author: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
deleted (boolean)
htmlContent (string)
content (string)
revisions_deletePermanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.fileId (string) required
revisionId (string) required
revisions_getGets a revision's metadata or content by ID.fileId (string) required
revisionId (string) required
acknowledgeAbuse (boolean)
revisions_listLists a file's revisions.fileId (string) required
pageSize (integer)
pageToken (string)
revisions_updateUpdates a revision with patch semantics.fileId (string) required
revisionId (string) required
id (string)
mimeType (string)
kind (string)
published (boolean)
keepForever (boolean)
md5Checksum (string)
modifiedTime (string)
publishAuto (boolean)
publishedOutsideDomain (boolean)
publishedLink (string)
size (string)
originalFilename (string)
lastModifyingUser: {
. displayName (string)
. kind (string)
. me (boolean)
. permissionId (string)
. emailAddress (string)
. photoLink (string)
} (object)
teamdrives_createDeprecated: Use drives.create instead.requestId (string)
id (string)
name (string)
colorRgb (string)
kind (string)
backgroundImageLink (string)
capabilities: {
. canAddChildren (boolean)
. canComment (boolean)
. canCopy (boolean)
. canDeleteTeamDrive (boolean)
. canDownload (boolean)
. canEdit (boolean)
. canListChildren (boolean)
. canManageMembers (boolean)
. canReadRevisions (boolean)
. canRemoveChildren (boolean)
. canRename (boolean)
. canRenameTeamDrive (boolean)
. canChangeTeamDriveBackground (boolean)
. canShare (boolean)
. canChangeCopyRequiresWriterPermissionRestriction (boolean)
. canChangeDomainUsersOnlyRestriction (boolean)
. canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean)
. canChangeTeamMembersOnlyRestriction (boolean)
. canDeleteChildren (boolean)
. canTrashChildren (boolean)
. canResetTeamDriveRestrictions (boolean)
. canChangeDownloadRestriction (boolean)
} (object)
themeId (string)
backgroundImageFile: {
. id (string)
. xCoordinate (number)
. yCoordinate (number)
. width (number)
} (object)
createdTime (string)
restrictions: {
. copyRequiresWriterPermission (boolean)
. domainUsersOnly (boolean)
. teamMembersOnly (boolean)
. adminManagedRestrictions (boolean)
. sharingFoldersRequiresOrganizerPermission (boolean)
. downloadRestriction
} (object)
orgUnitId (string)
teamdrives_deleteDeprecated: Use drives.delete instead.teamDriveId (string) required
teamdrives_getDeprecated: Use drives.get instead.teamDriveId (string) required
useDomainAdminAccess (boolean)
teamdrives_listDeprecated: Use drives.list instead.pageSize (integer)
pageToken (string)
q (string)
useDomainAdminAccess (boolean)
teamdrives_updateDeprecated: Use drives.update instead.teamDriveId (string) required
useDomainAdminAccess (boolean)
id (string)
name (string)
colorRgb (string)
kind (string)
backgroundImageLink (string)
capabilities: {
. canAddChildren (boolean)
. canComment (boolean)
. canCopy (boolean)
. canDeleteTeamDrive (boolean)
. canDownload (boolean)
. canEdit (boolean)
. canListChildren (boolean)
. canManageMembers (boolean)
. canReadRevisions (boolean)
. canRemoveChildren (boolean)
. canRename (boolean)
. canRenameTeamDrive (boolean)
. canChangeTeamDriveBackground (boolean)
. canShare (boolean)
. canChangeCopyRequiresWriterPermissionRestriction (boolean)
. canChangeDomainUsersOnlyRestriction (boolean)
. canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean)
. canChangeTeamMembersOnlyRestriction (boolean)
. canDeleteChildren (boolean)
. canTrashChildren (boolean)
. canResetTeamDriveRestrictions (boolean)
. canChangeDownloadRestriction (boolean)
} (object)
themeId (string)
backgroundImageFile: {
. id (string)
. xCoordinate (number)
. yCoordinate (number)
. width (number)
} (object)
createdTime (string)
restrictions: {
. copyRequiresWriterPermission (boolean)
. domainUsersOnly (boolean)
. teamMembersOnly (boolean)
. adminManagedRestrictions (boolean)
. sharingFoldersRequiresOrganizerPermission (boolean)
. downloadRestriction
} (object)
orgUnitId (string)
accessproposals_getRetrieves an AccessProposal by ID.fileId (string) required
proposalId (string) required
accessproposals_resolveUsed to approve or deny an Access Proposal.fileId (string) required
proposalId (string) required
role (array)
view (string)
action (string)
sendNotification (boolean)
accessproposals_listList the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.fileId (string) required
pageToken (string)
pageSize (integer)