Skip to content
gist.link ↗

importWorkbook

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

The importWorkbook mutation on the Sheets API.

sheets:mutation:importWorkbook

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 {
importWorkbook(input: ImportWorkbookInput!): Workbook!
}
Argument Type Required Description
input ImportWorkbookInput! Yes —

Workbook! — 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 ImportWorkbook($input: ImportWorkbookInput!) { importWorkbook(input: $input) { id title description locale timezone revision archivedAt recoveryNodeId } }",
"variables": {
"input": {
"filename": "Example",
"contentBase64": "example"
}
}
}
JSON