Skip to content
gist.link ↗

nodeVersions

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

Version history of a file, newest first.

drive:query:nodeVersions

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

type Query {
nodeVersions(nodeId: Int!): [FileVersion!]!
}
Argument Type Required Description
nodeId Int! Yes —

[FileVersion!]! — 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": "query NodeVersions($nodeId: Int!) { nodeVersions(nodeId: $nodeId) { id nodeId version sizeBytes checksum mimeType createdBy createdAt } }",
"variables": {
"nodeId": 10
}
}
JSON