Skip to content
Discussion options

You must be logged in to vote

Hi, just tried this script and it works as intended - note is created of type render:

const response = api.createNewNote({
            parentNoteId: 'root',
            title: "zzz",
            content: "",
            type: "render",
            isProtected: false
        });

After creation you can also change the note type like this:

note.type = 'render';
note.mime = '';
note.save();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nicollasricas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants