Upload file bytes to Google Drive as the calling member
Capability Sources
Upload file bytes to Google Drive as the calling member
Creates a file in the calling member’s Google Drive using standard base64 bytes. The gmail-attachment capability returns dataBase64 in this exact encoding — pass it through directly to save an email attachment to Drive. The response file.webViewLink is the user-facing link — share it with the user.
POST
Upload file bytes to Google Drive as the calling member
Body
application/json
Filename to create in Google Drive.
Required string length:
1 - 255File MIME type.
Pattern:
^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$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 - 13981016Pattern:
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$Optional Google Drive parent folder id.
Required string length:
1 - 512