Skip to main content
PUT
Upload raw file bytes to Google Drive (streaming, phase 2)

Authorizations

Authorization
string
header
required

IDM-issued JWT. Obtain via the IDM authentication flow and pass as: Bearer

Headers

X-Stream-Token
string
required

Required on the phase-2 PUT of a streaming upload (X-Upload-Mode: STREAM). The value is the streamToken returned by the phase-1 initialize call. Mismatched or expired tokens are rejected with 401.

Content-Type
string
default:application/octet-stream

MIME type of the bytes being uploaded. Defaults to application/octet-stream if omitted; set this to the file's true content type when known.

Content-Length
integer<int64>

Size of the uploaded payload in bytes. Must not exceed maxBytes from phase 1.

Path Parameters

streamId
string
required

Stream identifier from the phase-1 response. Embedded in the uploadUrl returned by POST /sync/upload-raw-file with X-Upload-Mode: STREAM.

Body

application/octet-stream

Raw bytes of the file to upload. The body is streamed unmodified to Google Drive.

The body is of type file.

Response

Success — bytes accepted and forwarded to Google Drive.