Skip to content
gist.link ↗

restoreWorkbookFromRecovery

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

The restoreWorkbookFromRecovery mutation on the Sheets API.

sheets:mutation:restoreWorkbookFromRecovery

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

type Mutation {
restoreWorkbookFromRecovery(input: WorkbookRecoveryRestoreInput!): WorkbookRecoveryRestorePayload!
}
Argument Type Required Description
input WorkbookRecoveryRestoreInput! Yes —

WorkbookRecoveryRestorePayload! — 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": "mutation RestoreWorkbookFromRecovery($input: WorkbookRecoveryRestoreInput!) { restoreWorkbookFromRecovery(input: $input) { success revision sourceRevision operationId restoredWorksheetCount restoredCellCount idempotentReplay } }",
"variables": {
"input": {
"workbookId": "example",
"expectedRevision": 10,
"clientInstanceId": "example",
"clientMutationId": "example"
}
}
}
JSON