Skip to content
gist.link ↗

updateWorksheet

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

The updateWorksheet mutation on the Sheets API.

sheets:mutation:updateWorksheet

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 {
updateWorksheet(id: String!, input: UpdateWorksheetInput!): Worksheet!
}
Argument Type Required Description
id String! Yes —
input UpdateWorksheetInput! Yes —

Worksheet! — 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 UpdateWorksheet($id: String!, $input: UpdateWorksheetInput!) { updateWorksheet(id: $id, input: $input) { id workbookId title position rowCount columnCount dataEndRow frozenRows } }",
"variables": {
"id": "example",
"input": {
"title": "Example",
"position": 10,
"frozenRows": 10
}
}
}
JSON