Prepare a resumable Google Drive upload, or a replacement of an existing file's content, for a client with local file transport
Changed onPrepare a Google Drive resumable upload session for an explicitly requested file upload. This does not upload bytes or prove completion. Clients with file transport can PUT local bytes directly to the returned secret uploadUrl, outside model context. With fileId the upload replaces that file's content as a new Drive version; with convertTo a new Office file becomes a native Google file. Google sessions can remain valid for up to one week; they are not short-lived signed URLs. Do not automatically create another session after an uncertain result. Final PUT returns file metadata, including headRevisionId and md5Checksum for later replaces. Uses the selected connection.
Request
- Base URL: https://api.openworklabs.com
- URL: https://api.openworklabs.com/v1/capabilities/google-workspace/drive-upload-sessions
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Request body
Response
Secret upload session; file not yet uploaded.
Changes
- breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added
subschema #2to the response bodyanyOflist for the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
removed the non-success response with the status
- info