{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-doc-format-create-request-schema.json",
  "title": "DocFormatCreateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-doc-formats-api-openapi.yml#/components/schemas/DocFormatCreateRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/DocFormatMarkdownData"
    },
    "position": {
      "$ref": "#/$defs/PositionChange"
    },
    "parent": {
      "$ref": "#/$defs/Parent"
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "DocFormatMarkdownData": {
      "type": "object",
      "properties": {
        "contentType": {
          "type": "string",
          "enum": [
            "markdown"
          ]
        },
        "content": {
          "type": "string",
          "description": "a string of markdown text"
        },
        "contentVersion": {
          "type": "number"
        }
      },
      "required": [
        "contentType",
        "content"
      ]
    },
    "Parent": {
      "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."
        }
      }
    },
    "PositionChange": {
      "type": "object",
      "description": "Contains information about the item's position on the board, such as its `x` coordinate, `y` coordinate, and the origin of the `x` and `y` coordinates.",
      "properties": {
        "x": {
          "type": "number",
          "format": "double",
          "description": "X-axis coordinate of the location of the item on the board.\nBy default, all items have absolute positioning to the board, not the current viewport. Default: `0`.\nThe center point of the board has `x: 0` and `y: 0` coordinates.",
          "default": 0
        },
        "y": {
          "type": "number",
          "format": "double",
          "description": "Y-axis coordinate of the location of the item on the board.\nBy default, all items have absolute positioning to the board, not the current viewport. Default: `0`.\nThe center point of the board has `x: 0` and `y: 0` coordinates.",
          "default": 0
        }
      }
    }
  }
}