Skip to content
gist.link ↗

publishRange

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

The publishRange mutation on the Sheets API.

sheets:mutation:publishRange

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 {
publishRange(input: PublishRangeInput!): PublishedRange!
}
Argument Type Required Description
input PublishRangeInput! Yes —

PublishedRange! — 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 PublishRange($input: PublishRangeInput!) { publishRange(input: $input) { id workbookId worksheetId targetAudience startRow endRow startColumn endColumn } }",
"variables": {
"input": {
"workbookId": "example",
"worksheetId": "example",
"startRow": 10,
"endRow": 10,
"startColumn": 10,
"endColumn": 10,
"columns": [
{
"id": "example",
"column": 10,
"role": "example"
}
]
}
}
}
JSON