{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-document-create-request-schema.json",
  "title": "DocumentCreateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-document-items-api-openapi.yml#/components/schemas/DocumentCreateRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/DocumentUrlData"
    },
    "position": {
      "$ref": "#/$defs/PositionChange"
    },
    "parent": {
      "$ref": "#/$defs/Parent"
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "DocumentUrlData": {
      "type": "object",
      "description": "Contains information about the document URL.",
      "properties": {
        "title": {
          "type": "string",
          "description": "A short text header to identify the document."
        },
        "url": {
          "type": "string",
          "default": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
          "description": "URL where the document is hosted."
        }
      },
      "required": [
        "url"
      ]
    },
    "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
        }
      }
    }
  }
}