{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schedchie-com/json-schema/schedchie-com-update-note-schema.json",
  "title": "UpdateNote",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schedchie-com-openapi.json#/components/schemas/UpdateNote",
  "type": "object",
  "minProperties": 1,
  "additionalProperties": false,
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1
    },
    "content": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "note",
        "idea",
        "draft",
        "reminder"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "archived",
        "converted"
      ]
    },
    "stage": {
      "type": "string",
      "enum": [
        "idea",
        "drafting",
        "done"
      ]
    },
    "order": {
      "type": "integer",
      "minimum": 0
    },
    "pinned": {
      "type": "boolean"
    },
    "linkedDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "`null` unpins the note from the calendar."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "color": {
      "type": "string",
      "enum": [
        "yellow",
        "blue",
        "green",
        "purple",
        "pink",
        "orange"
      ]
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "accountGroups": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "linkedLibraryItem": {
      "type": [
        "string",
        "null"
      ],
      "description": "`null` unlinks the note from its library item."
    }
  }
}