Skip to content
gist.link ↗

workbookHistoryAvailability

Query Sheets API — POST https://sheets.api.gist.link/graphql

The workbookHistoryAvailability query on the Sheets API.

sheets:query:workbookHistoryAvailability

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

type Query {
workbookHistoryAvailability(workbookId: String!): WorkbookHistoryAvailability!
}
Argument Type Required Description
workbookId String! Yes —

WorkbookHistoryAvailability! — see the Sheets types reference.

Terminal window
curl https://sheets.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query WorkbookHistoryAvailability($workbookId: String!) { workbookHistoryAvailability(workbookId: $workbookId) { undoOperationId redoOperationId } }",
"variables": {
"workbookId": "example"
}
}
JSON