Skip to content
gist.link ↗

completeUpload

Mutation Drive API — POST https://drive.api.gist.link/graphql

Marks the uploaded object live (verifies it exists, records size/ETag).

drive:mutation:completeUpload

The calling IAM key must hold this permission (or a wildcard that covers it: drive:mutation:* or drive:*) and the access token must have been minted with audience=drive. See Permissions.

type Mutation {
completeUpload(nodeId: Int!): Node!
}
Argument Type Required Description
nodeId Int! Yes —

Node! — see the Drive types reference.

Terminal window
curl https://drive.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CompleteUpload($nodeId: Int!) { completeUpload(nodeId: $nodeId) { id type name status } }",
"variables": {
"nodeId": 10
}
}
JSON