{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-mindmap-item-schema.json",
  "title": "MindmapItem",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-mind-map-nodes-experimental-api-openapi.yml#/components/schemas/MindmapItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "int64",
      "description": "Unique identifier (ID) of an item."
    },
    "data": {
      "$ref": "#/$defs/MindmapData"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the item was created. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "createdBy": {
      "$ref": "#/$defs/CreatedBy"
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the item was last modified. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "modifiedBy": {
      "$ref": "#/$defs/ModifiedBy"
    },
    "parent": {
      "$ref": "#/$defs/ParentLinksEnvelope"
    },
    "links": {
      "$ref": "#/$defs/WidgetLinks"
    },
    "type": {
      "type": "string",
      "description": "Type of item that is returned."
    },
    "style": {
      "$ref": "#/$defs/MindmapStyle"
    }
  },
  "required": [
    "id",
    "type"
  ],
  "$defs": {
    "CreatedBy": {
      "type": "object",
      "description": "Contains information about the user who created the item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      }
    },
    "MindmapData": {
      "type": "object",
      "description": "Contains mind map node data, such as `nodeView` or `isRoot`.",
      "properties": {
        "nodeView": {
          "$ref": "#/$defs/MindmapNodeView"
        },
        "isRoot": {
          "type": "boolean",
          "description": "Indicates whether this node is the root of the mind map."
        },
        "direction": {
          "type": "string",
          "description": "Indicates where this node is positioned relative to the root node. `start` indicates that this node must be positioned at the start of the root node, which is either the left or top of the root node. `end` indicates that this node must be positioned at the emd of the root node, which is either the right or bottom of the root node.",
          "enum": [
            "start",
            "end"
          ]
        }
      }
    },
    "MindmapNodeStyle": {
      "type": "object",
      "description": "Contains information about the node style, such as the node color or fillOpacity.",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex value representing the color for the text within the node."
        },
        "fillOpacity": {
          "type": "string",
          "description": "It sets the opacity level of the background fill color.\n\nAllowed values: any number between 0.0 and 1.0 included.\n\nIf the value is 0.0, the background fill color is completely transparent or invisible.\nIf the value is 1.0, the background fill color is completely opaque or solid.\nDefault: 0 (transparent)"
        },
        "fontSize": {
          "type": "string",
          "description": "Defines the font size, in dp, for the text on the node.\nDefault: `14`.",
          "maximum": 288,
          "minimum": 10
        }
      }
    },
    "MindmapNodeView": {
      "type": "object",
      "description": "Contains the information about the mind map node.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of item used as mind map node. Currently, `type` can only be equal to `text`."
        },
        "data": {
          "$ref": "#/$defs/MindmapWidgetDataOutput"
        },
        "style": {
          "$ref": "#/$defs/MindmapNodeStyle"
        }
      }
    },
    "MindmapStyle": {
      "type": "object",
      "description": "Contains information about the node style, such as the widget's border color or shape type.",
      "properties": {
        "nodeColor": {
          "type": "string",
          "description": "Hex value representing the color of the widget's border."
        },
        "shape": {
          "type": "string",
          "description": "Shape type of the widget.",
          "enum": [
            "pill",
            "rectangle",
            "rounded_rectangle",
            "none"
          ]
        },
        "fontSize": {
          "type": "string",
          "description": "The same font size as in MindmapNodeStyle.",
          "maximum": 288,
          "minimum": 10
        }
      }
    },
    "MindmapWidgetDataOutput": {
      "oneOf": [
        {
          "$ref": "#/$defs/TextData"
        }
      ],
      "description": "Contains the mind map node data, such as the item title, content, or description."
    },
    "ModifiedBy": {
      "type": "object",
      "description": "Contains information about the user who last modified the item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      }
    },
    "ParentLinksEnvelope": {
      "type": "object",
      "description": "Contains information about the parent frame for the item.",
      "properties": {
        "id": {
          "type": "string",
          "format": "int64",
          "description": "Unique identifier (ID) of the parent frame for the item."
        },
        "links": {
          "$ref": "#/$defs/SelfLink"
        }
      }
    },
    "SelfLink": {
      "type": "object",
      "description": "Contains applicable links for the current object.",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to obtain more information about the current object."
        }
      }
    },
    "TextData": {
      "type": "object",
      "description": "Contains text item data, such as the title, content, or description. For more information on the JSON properties, see [Data](https://developers.miro.com/reference/data).",
      "properties": {
        "content": {
          "type": "string",
          "description": "The actual text (content) that appears in the text item."
        }
      },
      "required": [
        "content"
      ]
    },
    "WidgetLinks": {
      "type": "object",
      "description": "Contains applicable links for the item.",
      "properties": {
        "related": {
          "type": "string",
          "description": "Link to obtain information about the child items related to the frame."
        },
        "self": {
          "type": "string",
          "description": "Link to obtain information about the current item."
        }
      }
    }
  }
}