Saves new note or updates existing note

Information about notes is provided in args parameter, which is stringified JSON

Values that can be included in args are:

Param nameRequiredTypeDescription
_idNoStringNote ID passed only when editing note.
noteYesStringText for this note
tsYesIntegerTimestamp for this note
noteTypeYes"private" or "shared" or "public"Type of note. Private is only visible for owner. Shared is visible for users it is shared with. Public is visible for all users.
colorYesIntegerColor number (1 - 6) represents one of colors: #79a3e9, #70bbb8, #e2bc33, #a786cd, #dd6b67, #ece176
emailNoArray with stringsUsed when creating shared note. Email of Countly users to share note with.