Version 0.18.0
New stuff
The /note/create
route has a new optional if-exists
parameter to specify a strategy for dealing with an existing note. It overrides the default behavior (creating a new note by appending a numeric suffix to the base name) and can be set to skip
or overwrite
. if-exists=skip
will not create another note and instead return the named note as-is. if-exists=overwrite
will replace the existing note with a new one.
The/daily-note/create
route has a new optional if-exists
parameter to specify a strategy for dealing with an existing current daily note. It overrides the default behavior (returning an error) and can be set to skip
or overwrite
. if-exists=skip
will pretend the existing note was just created and return it. if-exists=overwrite
will trash the existing note and create a new daily note from scratch.
Changes
/note/create
: theoverwrite
parameter is deprecated and will be removed in a future release. Useif-exists=overwrite
instead./daily-note/create
: theoverwrite
parameter is deprecated and will be removed in a future release. Useif-exists=overwrite
instead.