{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-app-card-update-request-schema.json",
  "title": "AppCardUpdateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-app-card-items-api-openapi.yml#/components/schemas/AppCardUpdateRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/AppCardDataChanges"
    },
    "style": {
      "$ref": "#/$defs/UpdateAppCardStyle"
    },
    "position": {
      "$ref": "#/$defs/PositionChange"
    },
    "geometry": {
      "$ref": "#/$defs/Geometry"
    },
    "parent": {
      "$ref": "#/$defs/Parent"
    }
  },
  "$defs": {
    "AppCardDataChanges": {
      "type": "object",
      "description": "Contains app card item data, such as the title, description, or fields.",
      "properties": {
        "description": {
          "type": "string",
          "description": "A short text description to add context about the app card."
        },
        "fields": {
          "type": "array",
          "description": "Array where each object represents a custom preview field. Preview fields are displayed on the bottom half of the app card in the compact view.",
          "items": {
            "$ref": "#/$defs/CustomField"
          }
        },
        "status": {
          "type": "string",
          "default": "disconnected",
          "description": "Status indicating whether an app card is connected and in sync with the source. When the source for the app card is deleted, the status returns `disabled`.",
          "enum": [
            "disconnected",
            "connected",
            "disabled"
          ]
        },
        "title": {
          "type": "string",
          "default": "sample app card item",
          "description": "A short text header to identify the app card."
        }
      }
    },
    "CustomField": {
      "type": "object",
      "description": "Array where each object represents a custom preview field. Preview fields are displayed on the bottom half of the app card in the compact view.",
      "properties": {
        "fillColor": {
          "type": "string",
          "description": "Hex value representing the color that fills the background area of the preview field, when it's displayed on the app card."
        },
        "iconShape": {
          "type": "string",
          "default": "round",
          "description": "The shape of the icon on the preview field.",
          "enum": [
            "round",
            "square"
          ]
        },
        "iconUrl": {
          "type": "string",
          "description": "A valid URL pointing to an image available online.\nThe transport protocol must be HTTPS.\nPossible image file formats: JPG/JPEG, PNG, SVG."
        },
        "textColor": {
          "type": "string",
          "description": "Hex value representing the color of the text string assigned to `value`."
        },
        "tooltip": {
          "type": "string",
          "description": "A short text displayed in a tooltip when clicking or hovering over the preview field."
        },
        "value": {
          "type": "string",
          "description": "The actual data value of the custom field.\nIt can be any type of information that you want to convey."
        }
      }
    },
    "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."
        }
      }
    },
    "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
        }
      }
    },
    "UpdateAppCardStyle": {
      "type": "object",
      "description": "Contains information about the style of an app card item, such as the fill color.",
      "properties": {
        "fillColor": {
          "type": "string",
          "description": "Hex value of the border color of the app card."
        }
      }
    }
  }
}