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.