From 306103c618f817a809b8043c1b8386dceedc4b0e Mon Sep 17 00:00:00 2001 From: Tategoto Azarasi Date: Fri, 10 May 2024 12:25:29 +0800 Subject: [PATCH] update README.md Signed-off-by: Tategoto Azarasi <2724167997@qq.com> --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index b678541..032e5c5 100644 --- a/README.md +++ b/README.md @@ -3862,6 +3862,47 @@ Search parameters are passed to Anki, check the docs for more information: https ``` +#### `updateNoteModel` + +* Update the model, fields, and tags of an existing note. + This allows you to change the note's model, update its fields with new content, and set new tags. + +
+ Sample request: + + ```json + { + "action": "updateNoteModel", + "version": 6, + "params": { + "note": { + "id": 1514547547030, + "modelName": "NewModel", + "fields": { + "NewField1": "new field 1", + "NewField2": "new field 2", + "NewField3": "new field 3" + }, + "tags": ["new", "updated", "tags"] + } + } + } + ``` + +
+ +
+ Sample result: + + ```json + { + "result": null, + "error": null + } + ``` + +
+ #### `updateNoteTags` * Set a note's tags by note ID. Old tags will be removed.