note/edit
- Edits an existing note.
Method parameters:
id
- The ID of the note to edit.
text
- The new text of the note.
encrypt_in_listings
- Whether the note should be encrypted in listings.
password_protect
- Whether the note should be password-protected. This option is available with a password-authenticated session only.
tags
- A space-separated list of tags.
Returns a JSON document of the following format:
<boolean> - Always true
.
Expected errors:
NOTE_NOT_FOUND
- A note with the ID doesn't exist.
ENTER_TEXT
- The new text is empty.
TOO_MANY_TAGS
- More than 5 tags given.
CANNOT_PASSWORD_PROTECT
- A password-authenticated session is required to password-protect the note.