{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-embed-create-request-schema.json",
  "title": "EmbedCreateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-embed-items-api-openapi.yml#/components/schemas/EmbedCreateRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/EmbedUrlData"
    },
    "position": {
      "$ref": "#/$defs/PositionChange"
    },
    "geometry": {
      "$ref": "#/$defs/FixedRatioNoRotationGeometry"
    },
    "parent": {
      "$ref": "#/$defs/Parent"
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "EmbedUrlData": {
      "type": "object",
      "description": "Contains information about the embed URL.",
      "properties": {
        "mode": {
          "type": "string",
          "description": "Defines how the content in the embed item is displayed on the board.\n`inline`: The embedded content is displayed directly on the board.\n`modal`: The embedded content is displayed inside a modal overlay on the board.",
          "enum": [
            "inline",
            "modal"
          ]
        },
        "previewUrl": {
          "type": "string",
          "description": "URL of the image to be used as the preview image for the embedded item."
        },
        "url": {
          "type": "string",
          "default": "https://www.youtube.com/watch?v=HlVSNEiFCBk",
          "description": "A [valid URL](https://developers.miro.com/reference/data#embeddata) pointing to the content resource that you want to embed in the board. Possible transport protocols: HTTP, HTTPS."
        }
      },
      "required": [
        "url"
      ]
    },
    "FixedRatioNoRotationGeometry": {
      "type": "object",
      "description": "Contains geometrical information about the item. You can set either the width or height. You cannot set both the width and height at the same time.",
      "properties": {
        "height": {
          "type": "number",
          "format": "double",
          "description": "Height of the item, in pixels."
        },
        "width": {
          "type": "number",
          "format": "double",
          "description": "Width of the item, in pixels."
        }
      }
    },
    "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
        }
      }
    }
  }
}