Google Drive Integration

Google Drive API Operations

Browse all 57 operations available for Google Drive workflow automation.

About

1 operation
GET/about

Get user and Drive info

Get user info, storage quota, and supported formats

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly

Accessproposals

3 operations
GET/files/{fileId}/accessproposals

List the access proposals on a file. For more information, see [Manage pending access proposals](https://developers.goog

List pending access requests on a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 2 query params
POST/files/{fileId}/accessproposals/{proposalId}:resolve

Resolve an access proposal

Approve or deny a pending access request

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
2 path params
GET/files/{fileId}/accessproposals/{proposalId}

Retrieves an access proposal by ID. For more information, see [Manage pending access proposals](https://developers.googl

Get details of a pending access request

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
2 path params

Approvals

2 operations
GET/files/{fileId}/approvals/{approvalId}

Gets an Approval by ID.

Get details of a file approval

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
2 path params
GET/files/{fileId}/approvals

Lists the Approvals on a file.

List approval records on a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 2 query params

Apps

2 operations
GET/apps/{appId}

Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guid

Get details of a Drive-connected app

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.apps.readonlyhttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path params
GET/apps

Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/workspace/driv

List installed Drive-connected apps

https://www.googleapis.com/auth/drive.apps.readonly
3 query params

Changes

3 operations
GET/changes/startPageToken

Get start page token for changes

Get a token to start tracking changes

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
4 query params
GET/changes

List file changes

Detect new, modified, or deleted files

https://www.googleapis.com/auth/drive.readonly
14 query params
POST/changes/watch

Watch for file changes

Subscribe to real-time change notifications

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
14 query params

Channels

1 operation
POST/channels/stop

Stop a watch channel

Stop receiving push notifications for a channel

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly

Comments

5 operations
POST/files/{fileId}/comments

Create a comment

Add a comment to a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
1 path params
DELETE/files/{fileId}/comments/{commentId}

Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive

Permanently delete a comment and its replies

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
2 path params
GET/files/{fileId}/comments/{commentId}

Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/dr

Get a specific comment by ID

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.readonly
2 path, 1 query params
GET/files/{fileId}/comments

List file comments

List comments on a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 4 query params
PATCH/files/{fileId}/comments/{commentId}

Updates a comment with patch semantics. For more information, see [Manage comments and replies](https://developers.googl

Edit or resolve a comment

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
2 path params

Drives

7 operations
POST/drives

Create a shared drive

Create a new shared drive

https://www.googleapis.com/auth/drive
1 query params
DELETE/drives/{driveId}

Delete a shared drive

Permanently delete an empty shared drive

https://www.googleapis.com/auth/drive
1 path, 2 query params
GET/drives/{driveId}

Get shared drive metadata

Get shared drive name, settings, and capabilities

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonly
1 path, 1 query params
POST/drives/{driveId}/hide

Hides a shared drive from the default view. For more information, see [Manage shared drives](https://developers.google.c

Hide a shared drive from the default view

https://www.googleapis.com/auth/drive
1 path params
GET/drives

List shared drives

List shared drives the user can access

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonly
4 query params
POST/drives/{driveId}/unhide

Restores a shared drive to the default view. For more information, see [Manage shared drives](https://developers.google.

Restore a hidden shared drive to the default view

https://www.googleapis.com/auth/drive
1 path params
PATCH/drives/{driveId}

Update shared drive settings

Update shared drive name or restrictions

https://www.googleapis.com/auth/drive
1 path, 1 query params

Files

13 operations
POST/files/{fileId}/copy

Copy a file

Duplicate a file with optional new metadata

https://www.googleapis.com/auth/drive.file
1 path, 8 query params
POST/files

Create a file or folder

Upload a file or create a folder

https://www.googleapis.com/auth/drive.file
9 query params
POST/files/{fileId}/download

Downloads the content of a file. For more information, see [Download and export files](https://developers.google.com/wor

Start a long-running file download operation

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.readonly
1 path, 2 query params
GET/files/{fileId}/export

Export a Google Workspace file

Export Google Docs/Sheets/Slides to PDF, DOCX, CSV

https://www.googleapis.com/auth/drive.readonly
1 path, 1 query params
GET/files/generateIds

Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and mana

Pre-generate file IDs for idempotent uploads

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.file
3 query params
GET/files/{fileId}

Get file metadata or content

Get file metadata or download content

https://www.googleapis.com/auth/drive.readonly
1 path, 5 query params
GET/files

List files

Search and list files in Drive

https://www.googleapis.com/auth/drive.readonly
15 query params
GET/files/{fileId}/listLabels

Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/dr

List Drive labels applied to a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 2 query params
POST/files/{fileId}/modifyLabels

Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers

Add, update, or remove labels on a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadata
1 path params
DELETE/files/{fileId}

Permanently delete a file

Permanently delete a file (skips trash)

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.file
1 path, 3 query params
DELETE/files/trash

Permanently deletes all of the user's trashed files. For more information, see [Trash or delete files and folders](https

Permanently delete all trashed files

https://www.googleapis.com/auth/drive
2 query params
PATCH/files/{fileId}

Update a file

Update file metadata or replace content

https://www.googleapis.com/auth/drive.file
1 path, 10 query params
POST/files/{fileId}/watch

Watch a file for changes

Subscribe to change notifications for a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 5 query params

Operations

1 operation
GET/operations/{name}

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals

Check status of a long-running operation

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path params

Permissions

5 operations
GET/files/{fileId}/permissions/{permissionId}

Gets a permission by ID. For more information, see [Share files, folders, and drives](https://developers.google.com/work

Get details of a specific permission

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
2 path, 3 query params
GET/files/{fileId}/permissions

List file permissions

List who has access to a file or shared drive

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 6 query params
DELETE/files/{fileId}/permissions/{permissionId}

Remove a file permission

Revoke access by removing a permission

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
2 path, 4 query params
POST/files/{fileId}/permissions

Share a file

Share a file with a user, group, or domain

https://www.googleapis.com/auth/drive
1 path, 9 query params
PATCH/files/{fileId}/permissions/{permissionId}

Update a file permission

Change the role of an existing permission

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
2 path, 6 query params

Replies

5 operations
POST/files/{fileId}/comments/{commentId}/replies

Creates a reply to a comment. For more information, see [Manage comments and replies](https://developers.google.com/work

Reply to a comment on a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
2 path params
DELETE/files/{fileId}/comments/{commentId}/replies/{replyId}

Deletes a reply. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/a

Delete a reply from a comment thread

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
3 path params
GET/files/{fileId}/comments/{commentId}/replies/{replyId}

Gets a reply by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/driv

Get a specific reply by ID

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.readonly
3 path, 1 query params
GET/files/{fileId}/comments/{commentId}/replies

Lists a comment's replies. For more information, see [Manage comments and replies](https://developers.google.com/workspa

List replies in a comment thread

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.readonly
2 path, 3 query params
PATCH/files/{fileId}/comments/{commentId}/replies/{replyId}

Updates a reply with patch semantics. For more information, see [Manage comments and replies](https://developers.google.

Edit a reply in a comment thread

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.file
3 path params

Revisions

4 operations
GET/files/{fileId}/revisions/{revisionId}

Get a file revision

Get metadata or content of a file revision

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
2 path, 1 query params
GET/files/{fileId}/revisions

List file revisions

List version history of a file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.meet.readonlyhttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
1 path, 2 query params
DELETE/files/{fileId}/revisions/{revisionId}

Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like im

Delete a specific revision of a binary file

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.file
2 path params
PATCH/files/{fileId}/revisions/{revisionId}

Updates a revision with patch semantics. For more information, see [Manage file revisions](https://developers.google.com

Pin or publish a file revision

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.file
2 path params

Teamdrives

5 operations
POST/teamdrives

Deprecated: Use `drives.create` instead.

[Deprecated] Use drives.create instead

https://www.googleapis.com/auth/drive
1 query params
DELETE/teamdrives/{teamDriveId}

Deprecated: Use `drives.delete` instead.

[Deprecated] Use drives.delete instead

https://www.googleapis.com/auth/drive
1 path params
GET/teamdrives/{teamDriveId}

Deprecated: Use `drives.get` instead.

[Deprecated] Use drives.get instead

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonly
1 path, 1 query params
GET/teamdrives

Deprecated: Use `drives.list` instead.

[Deprecated] Use drives.list instead

https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonly
4 query params
PATCH/teamdrives/{teamDriveId}

Deprecated: Use `drives.update` instead.

[Deprecated] Use drives.update instead

https://www.googleapis.com/auth/drive
1 path, 1 query params