Skip to main content
POST
Finalize an upload
Call this after sending the bytes to the upload_url from POST /files/uploads. Until you do, the file is stored but not yet visible to Tasks in the project’s Drive.

Authorizations

Authorization
string
header
required

Requires an API key. See the Authentication guide.

Path Parameters

file_id
string
required

Body

application/json

Body for POST /files/{file_id}/finalize.

Omit both fields for a single upload. For a multipart upload, send the upload_id from the intent plus every part's {part_number, etag}.

upload_id
string | null
parts
CompletedPart · object[] | null

Response

200 - application/json

Upload finished; the file will appear in the project's Drive and become readable by the agent shortly.

file_id
string
required
object
string
default:upload_finalized
Allowed value: "upload_finalized"