Mutation

move_site

Moves a site to a different location in the site tree.

Arguments

input: MoveSiteInput!

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


Input Fields

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

Return Fields

site(): Site
The site that was moved.

Example

Query
mutation MoveSite($input: MoveSiteInput!) {
  move_site(input: $input) {
    site {
      id
      name
      parent_id
    }
  }
}
Variables
{
  "input": {
    "parent_id": "2",
    "site_id": "1"
  }
}
Result
{
  "data": {
    "move_site": {
      "site": {
        "id": "1",
        "name": "Example site",
        "parent_id": "2"
      }
    }
  }
}