Upload file (v2)
documentedUploads a new file (v2).
POST /upload/drive/v2/filesDriveno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: multipart/related; boundary=drive_upload_boundary" \
-d $'--drive_upload_boundary\r\nContent-Type: application/json; charset=UTF-8\r\n\r\n{"title":"{{$title}}","description":"{{$description}}","mimeType":"{{$mimeType}}","parents":[{"id":"{{$parent_id}}"}]}\r\n--drive_upload_boundary\r\nContent-Type: {{$mimeType}}\r\n\r\n{{$fileContent}}\r\n--drive_upload_boundary--'