{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-sticky-note-item-schema.json",
  "title": "StickyNoteItem",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-sticky-note-items-api-openapi.yml#/components/schemas/StickyNoteItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier (ID) of an item."
    },
    "data": {
      "$ref": "#/$defs/StickyNoteData"
    },
    "style": {
      "$ref": "#/$defs/StickyNoteStyle"
    },
    "position": {
      "$ref": "#/$defs/Position"
    },
    "geometry": {
      "$ref": "#/$defs/Geometry"
    },
    "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."
    }
  },
  "required": [
    "id",
    "type"
  ],
  "$defs": {
    "Geometry": {
      "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."
        },
        "rotation": {
          "type": "number",
          "format": "double",
          "description": "Rotation angle of an item, in degrees, relative to the board. You can rotate items clockwise (right) and counterclockwise (left) by specifying positive and negative values, respectively."
        },
        "width": {
          "type": "number",
          "format": "double",
          "description": "Width of the item, in pixels."
        }
      }
    },
    "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"
        }
      }
    },
    "Position": {
      "type": "object",
      "description": "Contains location information about the item, such as its x coordinate, y coordinate, and the origin of the x and y coordinates.",
      "properties": {
        "origin": {
          "type": "string",
          "default": "center",
          "description": "Area of the item that is referenced by its x and y coordinates. For example, an item with a center origin will have its x and y coordinates point to its center. The center point of the board has x: 0 and y: 0 coordinates.\nCurrently, only one option is supported.",
          "enum": [
            "center"
          ]
        },
        "relativeTo": {
          "type": "string",
          "enum": [
            "canvas_center",
            "parent_top_left"
          ]
        },
        "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."
        },
        "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."
        }
      }
    },
    "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."
        }
      }
    },
    "StickyNoteData": {
      "type": "object",
      "description": "Contains sticky note item data, such as the content or shape of the sticky note.",
      "properties": {
        "content": {
          "type": "string",
          "description": "The actual text (content) that appears in the sticky note item."
        },
        "shape": {
          "type": "string",
          "default": "square",
          "description": "Defines the geometric shape of the sticky note and aspect ratio for its dimensions.",
          "enum": [
            "square",
            "rectangle"
          ]
        }
      }
    },
    "StickyNoteStyle": {
      "type": "object",
      "description": "Contains information about the style of a sticky note item, such as the fill color or text alignment.",
      "properties": {
        "fillColor": {
          "type": "string",
          "description": "Fill color for the sticky note.\nDefault: `light_yellow`.",
          "enum": [
            "gray",
            "light_yellow",
            "yellow",
            "orange",
            "light_green",
            "green",
            "dark_green",
            "cyan",
            "light_pink",
            "pink",
            "violet",
            "red",
            "light_blue",
            "blue",
            "dark_blue",
            "black"
          ]
        },
        "textAlign": {
          "type": "string",
          "description": "Defines how the sticky note text is horizontally aligned.\nDefault: `center`.",
          "enum": [
            "left",
            "right",
            "center"
          ]
        },
        "textAlignVertical": {
          "type": "string",
          "description": "Defines how the sticky note text is vertically aligned.\nDefault: `top`.",
          "enum": [
            "top",
            "middle",
            "bottom"
          ]
        }
      }
    },
    "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."
        }
      }
    },
    "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`."
        }
      }
    },
    "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`."
        }
      }
    }
  }
}