Skip to content
gist.link ↗

moveNodes

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

The moveNodes mutation on the Drive API.

drive:mutation:moveNodes

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 {
moveNodes(ids: [Int!]!, parentId: Int): [Node!]!
}
Argument Type Required Description
ids [Int!]! Yes —
parentId Int No —

[Node!]! — see the Drive types reference.

Terminal window
curl https://drive.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation MoveNodes($ids: [Int!]!, $parentId: Int) { moveNodes(ids: $ids, parentId: $parentId) { id type name status } }",
"variables": {
"ids": [
10
],
"parentId": 10
}
}
JSON