# Mindmap

> Create a mindmap for brainstorming, topic exploration, and hierarchical idea organization.

Source: https://mockflow.com/developers/reference/item-types/mindmap

Send `"type": "mindmap"`.

Create a mindmap for brainstorming, topic exploration, and hierarchical idea organization.

Also available as the MCP tool `render_mindmap`. The same payload works through either surface.

### Fields

- `nodeData` (object, required): Root node with id, topic, root=true, and children array. Children have direction (0=left, 1=right)
    - `id` (string)
  - `topic` (string)
  - `image` (string): Optional emoji icon for the node (e.g. "💡", "🎯"). Use sparingly on key nodes.
  - `root` (boolean)
  - `children` (object[])

## Example

```json
{
  "type": "mindmap",
  "data": {
    "nodeData": {
      "id": "string",
      "topic": "string",
      "image": "string",
      "root": false,
      "children": [
        {
          "id": "string",
          "topic": "string",
          "image": "string",
          "direction": 0,
          "children": [
            {}
          ]
        }
      ]
    }
  }
}
```

## Add one record

`POST /boards/{boardId}/items/{itemId}/records` adds one of these to an item already on a board and leaves the rest of it as it is. Send the same `key` again to update that record instead of adding another.

### Record fields

- `topic` (string, required)
- `parent` (string): The topic it goes under, by its text; made under the centre when there is none. The centre when left out.
- `key` (string): Your own id for this record, like an issue key. Sending the same key again updates and moves that record instead of adding another.

```json
{
  "record": {
    "topic": "string",
    "parent": "string",
    "key": "string"
  }
}
```
