addedInput schema / $schema
Added value: +"http://json-schema.org/draft-07/schema#"
addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / contentMode
Added value: +{
+ "enum": [
+ "replace",
+ "append",
+ "prepend"
+ ],
+ "type": "string"
+}
addedInput schema / properties / expectedUpdatedAt
Added value: +{
+ "format": "date-time",
+ "type": "string"
+}
addedInput schema / properties / folderId
Added value: +{
+ "$ref": "#/properties/noteId"
+}
addedInput schema / properties / idempotencyKey
Added value: +{
+ "maxLength": 160,
+ "minLength": 8,
+ "type": "string"
+}
addedInput schema / properties / markdown
Added value: +{
+ "description": "Simple semantic content. Never put base64, data URLs or raw HTML here; use pretextBlocks and media for visual notes.",
+ "maxLength": 5000000,
+ "type": "string"
+}
addedInput schema / properties / media
Added value: +{
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "right",
+ "center",
+ "none",
+ "free"
+ ],
+ "type": "string"
+ },
+ "alt": {
+ "maxLength": 500,
+ "type": "string"
+ },
+ "anchor": {
+ "description": "Character offset in note text, or page anchor index when anchorMode is page.",
+ "maximum": 5000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "anchorMode": {
+ "description": "Anchor the editable Pretext medium to text flow or to the page.",
+ "enum": [
+ "text",
+ "page"
+ ],
+ "type": "string"
+ },
+ "dyLines": {
+ "description": "Vertical offset from the anchor measured in text lines.",
+ "maximum": 1000,
+ "minimum": -1000,
+ "type": "number"
+ },
+ "fileId": {
+ "description": "The id returned by upload_file. Do not provide a URL or base64 payload.",
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+ },
+ "hiddenUntilClick": {
+ "type": "boolean"
+ },
+ "kind": {
+ "enum": [
+ "image",
+ "audio",
+ "video",
+ "file"
+ ],
+ "type": "string"
+ },
+ "rotation": {
+ "maximum": 180,
+ "minimum": -180,
+ "type": "number"
+ },
+ "widthFrac": {
+ "description": "Media width as a fraction of content width. Required with anchor.",
+ "maximum": 1,
+ "minimum": 0.05,
+ "type": "number"
+ },
+ "xFrac": {
+ "description": "Horizontal position as a fraction of content width.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "fileId",
+ "kind"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+}
addedInput schema / properties / noteId
Added value: +{
+ "maxLength": 160,
+ "minLength": 1,
+ "type": "string"
+}
addedInput schema / properties / parentNoteId
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/properties/noteId"
+ },
+ {
+ "type": "null"
+ }
+ ]
+}
addedInput schema / properties / pretextBlocks
Added value: +{
+ "description": "Native visual Pretext blocks. Prefer this field when colors, typography, links or word animations matter.",
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right",
+ "justify"
+ ],
+ "type": "string"
+ },
+ "lineHeight": {
+ "maximum": 3,
+ "minimum": 1,
+ "type": "number"
+ },
+ "runs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "animation": {
+ "description": "Native durable Pretext word animation.",
+ "enum": [
+ "wave",
+ "pulse",
+ "rainbow",
+ "bounce",
+ "float",
+ "shake",
+ "swing",
+ "spin",
+ "typewriter",
+ "sparkle",
+ "gradient"
+ ],
+ "type": "string"
+ },
+ "backgroundColor": {
+ "$ref": "#/properties/pretextBlocks/items/anyOf/0/properties/runs/items/properties/textColor",
+ "description": "Highlight color as #RRGGBB."
+ },
+ "bold": {
+ "description": "Render this run with native Pretext bold styling.",
+ "type": "boolean"
+ },
+ "fontFamily": {
+ "description": "A font available in the NotePom Pretext renderer.",
+ "enum": [
+ "inherit",
+ "literata",
+ "atkinson"
+ ],
+ "type": "string"
+ },
+ "fontSize": {
+ "description": "Font size in CSS pixels.",
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "href": {
+ "description": "Safe HTTP(S) or mailto link for this run.",
+ "format": "uri",
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "italic": {
+ "description": "Render this run with native Pretext italic styling.",
+ "type": "boolean"
+ },
+ "letterSpacing": {
+ "description": "Letter spacing in em.",
+ "maximum": 0.3,
+ "minimum": -0.05,
+ "type": "number"
+ },
+ "text": {
+ "description": "Literal text for this visual run. Raw HTML is escaped.",
+ "maxLength": 100000,
+ "type": "string"
+ },
+ "textColor": {
+ "description": "Text color as #RRGGBB.",
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "minItems": 1,
+ "type": "array"
+ },
+ "type": {
+ "const": "paragraph",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "runs"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "level": {
+ "enum": [
+ 1,
+ 2,
+ 3
+ ],
+ "type": "number"
+ },
+ "runs": {
+ "$ref": "#/properties/pretextBlocks/items/anyOf/0/properties/runs"
+ },
+ "type": {
+ "const": "heading",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "level",
+ "runs"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "items": {
+ "$ref": "#/properties/pretextBlocks/items/anyOf/0/properties/runs"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "type": {
+ "const": "bulletList",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "items"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 500,
+ "type": "array"
+}
addedInput schema / properties / title
Added value: +{
+ "maxLength": 300,
+ "type": "string"
+}
addedInput schema / required
Added value: +[
+ "title",
+ "idempotencyKey"
+]