Skip to main content
PUT
/
google-drive
/
v1
/
sync
/
upload-raw-file
/
stream
/
{streamId}
Upload raw file bytes to Google Drive (streaming, phase 2)
curl --request PUT \
  --url https://eu.phrase.com/connectors/google-drive/v1/sync/upload-raw-file/stream/{streamId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/octet-stream' \
  --header 'X-Stream-Token: <x-stream-token>' \
  --data '"<string>"'
{
  "problemDetail": {
    "type": "<string>",
    "title": "<string>",
    "status": 123,
    "detail": "<string>",
    "instance": "<string>",
    "properties": {}
  }
}

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.