Skip to content
gist.link ↗

restoreNodes

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

The restoreNodes mutation on the Drive API.

drive:mutation:restoreNodes

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 {
restoreNodes(ids: [Int!]!): Boolean!
}
Argument Type Required Description
ids [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 RestoreNodes($ids: [Int!]!) { restoreNodes(ids: $ids) }",
"variables": {
"ids": [
10
]
}
}
JSON