Mutation

move_folder

Moves a given folder, and its contents, to a different location within the site tree hierarchy.

Arguments

input: MoveFolderInput!

The fields used to specify which folder you want to move, and which folder should be its new parent.


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 into which you want to move this folder. 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"
  }
}