Skip to content
gist.link ↗

createPublishedRangeSnapshot

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

The createPublishedRangeSnapshot mutation on the Sheets API.

sheets:mutation:createPublishedRangeSnapshot

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 {
createPublishedRangeSnapshot(grantId: String!, revision: Int): PublishedRangeSnapshot!
}
Argument Type Required Description
grantId String! Yes —
revision Int No —

PublishedRangeSnapshot! — 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 CreatePublishedRangeSnapshot($grantId: String!, $revision: Int) { createPublishedRangeSnapshot(grantId: $grantId, revision: $revision) { id grantId sourceRevision schema rowCount createdAt } }",
"variables": {
"grantId": "example",
"revision": 10
}
}
JSON