Mutation

move_folder

Moves a folder, and its contents, to a different location in the site tree.

Arguments

input: MoveFolderInput!

The fields used to specify which folder you want to move, and the new parent folder.


Input Fields

folder_id(): ID!
The unique identifier of the folder that you want to move.
parent_id(): ID!
The unique identifier of the folder you want to move this folder to. To move the folder to the root level, enter 0.

Return Fields

folder(): Folder!
The folder that was moved.

Example

Query
mutation MoveFolder($input: MoveFolderInput!) {
       move_folder(input: $input) {
           folder {
               id
               name
               parent_id
           }
       }
   }
Variables
{
  "input": {
    "folder_id": "2",
    "parent_id": "1"
  }
}