trilium
    Preparing search index...
    interface NoteParams {
        branchId?: string;
        content: string | Buffer<ArrayBufferLike>;
        dateCreated?: string;
        ignoreForbiddenParents?: boolean;
        isExpanded?: boolean;
        isProtected?: boolean;
        mime?: string;
        noteId?: string;
        notePosition?: number;
        parentNoteId: string;
        prefix?: string;
        target?: "into";
        templateNoteId?: string;
        title: string;
        type:
            | "canvas"
            | "code"
            | "search"
            | "image"
            | "text"
            | "file"
            | "noteMap"
            | "launcher"
            | "doc"
            | "contentWidget"
            | "relationMap"
            | "render"
            | "mermaid"
            | "book"
            | "webView"
            | "mindMap"
            | "geoMap";
        utcDateCreated?: string;
    }
    Index

    Properties

    branchId?: string
    content: string | Buffer<ArrayBufferLike>
    dateCreated?: string
    ignoreForbiddenParents?: boolean
    isExpanded?: boolean

    default is false

    isProtected?: boolean

    default is false

    mime?: string

    default value is derived from default mimes for type

    noteId?: string

    optionally can force specific noteId

    notePosition?: number

    default is the last existing notePosition in a parent + 10

    parentNoteId: string
    prefix?: string

    default is empty string

    target?: "into"
    templateNoteId?: string
    title: string
    type:
        | "canvas"
        | "code"
        | "search"
        | "image"
        | "text"
        | "file"
        | "noteMap"
        | "launcher"
        | "doc"
        | "contentWidget"
        | "relationMap"
        | "render"
        | "mermaid"
        | "book"
        | "webView"
        | "mindMap"
        | "geoMap"

    text, code, file, image, search, book, relationMap, canvas, webView

    utcDateCreated?: string