Google Drive
API actions for the Google Drive integration.
Google Drive
Upload, move, and manage files in Google Drive.
Create folder
Create a folder in Google Drive and return a link to it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
folder_name | string | Yes | The name of the folder to create. |
parent_folder_url | string | No | The Google Drive URL of the folder to create the new folder in. |
Response
"https://drive.google.com/drive/folders/newfolder123"Delete file
Delete a file from Google Drive.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive URL of the file to delete. |
Response
trueDownload file from URL
Download a Google Drive file given its sharing URL.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The sharing URL of the Google Drive file. |
download_dir | string | No | The folder to save the downloaded file in. |
Response
{
"content_type": "application/pdf",
"filename": "downloaded_file.txt",
"size_bytes": 1024
}Duplicate file
Duplicate a file in Google Drive and return a link to the copy.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive URL of the file to duplicate. |
destination_folder_url | string | No | The Google Drive URL of the folder to place the copy in. |
new_name | string | No | The name for the copy. |
Response
"https://drive.google.com/file/d/xyz789/view"Move file
Move a file to a different folder in Google Drive.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_url | string | Yes | The Google Drive URL of the file to move. |
destination_folder_url | string | Yes | The Google Drive URL of the folder to move the file to. |
Response
"https://drive.google.com/file/d/abc123/view"Upload file
Upload a file to Google Drive and return a link to it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path | string | Yes | The file to upload, chosen with the file picker. |
folder_url | string | No | The Google Drive folder URL to upload the file to. |
mime_type | string | No | The file's format, for example 'application/pdf'. |
Response
"https://drive.google.com/file/d/abc123/view"