{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-update-list-dto-schema.json",
  "title": "UpdateListDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-lists-api-openapi.yml#/components/schemas/UpdateListDto",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "The display name of the list."
    },
    "emoji": {
      "type": [
        "string",
        "null"
      ],
      "description": "The emoji shown next to the list, or `null` if unset."
    },
    "description": {
      "type": "string",
      "description": "A short description of the list."
    },
    "layout": {
      "type": "string",
      "enum": [
        "table",
        "board"
      ],
      "description": "How the list is rendered in the app: `table` or `board`."
    },
    "options": {
      "default": {},
      "type": "object",
      "properties": {
        "segmentedByInBoard": {
          "type": "string",
          "description": "For board layout, the field path whose values group records into columns."
        },
        "showFieldNamesInBoard": {
          "type": "boolean",
          "description": "Whether field names are shown on cards in board layout."
        },
        "columnWidths": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "Table column pixel widths, keyed by field path. Absent keys use the default width."
        },
        "columnMetrics": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The aggregation metric shown in the table footer for each column, keyed by field path (e.g. `sum`, `count`)."
        },
        "hiddenBoardColumns": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "description": "Board columns hidden from view, keyed by segment field path; each value lists the hidden enum values for that field (`null` is the \"Unassigned\" column)."
        },
        "hiddenPrimaryCell": {
          "type": "boolean",
          "description": "Whether the primary (first) cell is hidden on cards in board layout."
        }
      },
      "description": "View-level display options such as column widths and layout."
    },
    "query": {
      "default": null,
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "sql": {
          "type": "string",
          "description": "The SQL query that defines the list membership and ordering."
        },
        "nlq": {
          "type": "string",
          "description": "The original natural-language query, if the SQL was generated from one."
        },
        "version": {
          "type": "number",
          "description": "The view query schema version, used for migrations; an omitted value is treated as version 0 (the oldest)."
        }
      },
      "required": [
        "sql"
      ],
      "description": "For dynamic lists, the SQL query that defines membership; `null` for static and default lists."
    },
    "rank": {
      "type": "number",
      "description": "The sort position of the list relative to its siblings."
    }
  }
}