{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-frame-update-request-schema.json",
  "title": "FrameUpdateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-frames-api-openapi.yml#/components/schemas/FrameUpdateRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/FrameChanges"
    },
    "style": {
      "$ref": "#/$defs/UpdateFrameStyle"
    },
    "position": {
      "$ref": "#/$defs/PositionChange"
    },
    "geometry": {
      "$ref": "#/$defs/GeometryNoRotation"
    }
  },
  "$defs": {
    "FrameChanges": {
      "type": "object",
      "description": "Contains frame item data, such as the title, frame type, or frame format.",
      "properties": {
        "format": {
          "type": "string",
          "default": "custom",
          "description": "Only custom frames are supported at the moment.",
          "enum": [
            "custom"
          ]
        },
        "title": {
          "type": "string",
          "default": "Sample frame title",
          "description": "Title of the frame. This title appears at the top of the frame."
        },
        "type": {
          "type": "string",
          "default": "freeform",
          "description": "Only free form frames are supported at the moment.",
          "enum": [
            "freeform"
          ]
        },
        "showContent": {
          "type": "boolean",
          "default": true,
          "description": "Hide or reveal the content inside a frame (Enterprise plan only)."
        }
      }
    },
    "GeometryNoRotation": {
      "type": "object",
      "description": "Contains geometrical information about the item, such as its width or height.",
      "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."
        }
      }
    },
    "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
        }
      }
    },
    "UpdateFrameStyle": {
      "type": "object",
      "description": "Contains information about the style of a frame item, such as the fill color.",
      "properties": {
        "fillColor": {
          "type": "string",
          "description": "Fill color for the frame.\nHex values: `#f5f6f8` `#d5f692` `#d0e17a` `#93d275` `#67c6c0` `#23bfe7` `#a6ccf5` `#7b92ff` `#fff9b1` `#f5d128` `#ff9d48` `#f16c7f` `#ea94bb` `#ffcee0` `#b384bb` `#000000`"
        }
      }
    }
  }
}