Skip to content
gist.link ↗

revokeShare

Mutation Drive API — POST https://drive.api.gist.link/graphql

The revokeShare mutation on the Drive API.

drive:mutation:revokeShare

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

type Mutation {
revokeShare(shareId: Int!): Boolean!
}
Argument Type Required Description
shareId Int! Yes —

Boolean!.

Terminal window
curl https://drive.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation RevokeShare($shareId: Int!) { revokeShare(shareId: $shareId) }",
"variables": {
"shareId": 10
}
}
JSON