Mutation

rename_folder

Renames an existing folder in the site tree.

Arguments

input: RenameFolderInput!

The fields used to specify which folder you want to rename and what the new name should be.


Input Fields

id(): ID!
The unique identifier of the folder that you want to rename.
name(): String!
The new name that you want to give the folder.

Return Fields

folder(): Folder!
The renamed folder.

Example

Query
mutation RenameFolder($input: RenameFolderInput!) {
  rename_folder(input: $input) {
    folder {
      id
      name
      parent_id
    }
  }
}
Variables
{
  "input": {
    "id": "1",
    "name": "Live"
  }
}
Result
{
  "data": {
    "rename_folder": {
      "folder": {
        "id": "1",
        "name": "Live",
        "parent_id": "0"
      }
    }
  }
}