Skip to main content
POST
Upload file bytes to Google Drive as the calling member

Body

application/json
filename
string
required

Filename to create in Google Drive.

Required string length: 1 - 255
mimeType
string
required

File MIME type.

Pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$
dataBase64
string
required

File bytes as standard base64. The gmail-attachment capability returns dataBase64 in this exact encoding — pass it through directly to save an email attachment to Drive. Maximum decoded size: 10 MiB.

Required string length: 1 - 13981016
Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
folderId
string

Optional Google Drive parent folder id.

Required string length: 1 - 512

Response

Google Drive file uploaded. The file.webViewLink is the user-facing link — share it with the user.

ok
boolean
required
file
object
required