---
title: "mindmap.move: Move mind-map node — Board kit command — Kition"
description: "Moves a mind-map node and everything below it under another node of the same map, or to another place among its siblings, and lays the map out again."
canonical: "https://developer.kition.ai/docs/kits/board/commands/mindmap.move"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/mindmap.move](https://developer.kition.ai/docs/kits/board/commands/mindmap.move)

# mindmap.move

**Move mind-map node.** Moves a mind-map node and everything below it under another node of the same map, or to another place among its siblings, and lays the map out again.

- Kit: Board 0.1.0 (.kboard); reference: [Board kit commands](https://developer.kition.ai/docs/kits/board.md)
- Changes the document: yes
- Acts on: `node` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `index` | `integer (≥ 0)` | no | Its place among the new parent's other children, 0 first (last by default); at most their count |
| `node` | `string` | yes | The node to move, with everything below it (not the root) |
| `parent` | `string` | yes | Its new parent: a node of the same map, not the node or one below it |
| `side` | `"left" \| "right"` | no | Which side of the root, when the new parent is the root of a map that grows both ways (the side its branch was on by default) |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "mindmap.move", "params": { "node": <string>, "parent": <string> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `index`, `side`. board_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "index": {
      "description": "Its place among the new parent's other children, 0 first (last by default); at most their count",
      "minimum": 0,
      "type": "integer"
    },
    "node": {
      "description": "The node to move, with everything below it (not the root)",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "parent": {
      "description": "Its new parent: a node of the same map, not the node or one below it",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "side": {
      "description": "Which side of the root, when the new parent is the root of a map that grows both ways (the side its branch was on by default)",
      "enum": [
        "left",
        "right"
      ],
      "type": "string"
    }
  },
  "required": [
    "node",
    "parent"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
