From a6948c835752bdbe6291e1e8f26b9edc22f18010 Mon Sep 17 00:00:00 2001 From: hrdrq Date: Sat, 11 Jan 2025 12:58:42 +0900 Subject: [PATCH] update README --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d0f0ea..3667e2c 100644 --- a/README.md +++ b/README.md @@ -770,6 +770,39 @@ Search parameters are passed to Anki, check the docs for more information: https ``` +#### `setDueDate` + +* Set Due Date. Turns cards into review cards if they are new, and makes them due on a certain date. + * 0 = today + * 1! = tomorrow + change interval to 1 + * 3-7 = random choice of 3-7 days + +
+ Sample request: + + ```json + { + "action": "setDueDate", + "version": 6, + "params": { + "cards": [1498938915662, 1502098034048], + "days": "3-7" + } + } + ``` +
+ +
+ Sample result: + + ```json + { + "result": true, + "error": null + } + ``` +
+ --- ### Deck Actions @@ -4178,7 +4211,7 @@ Search parameters are passed to Anki, check the docs for more information: https the note and the profile where the note was created.
- Sample request: + Sample request (note ids): ```json { @@ -4191,6 +4224,20 @@ Search parameters are passed to Anki, check the docs for more information: https ```
+
+ Sample request (query): + + ```json + { + "action": "notesInfo", + "version": 6, + "params": { + "query": "deck:current" + } + } + ``` +
+
Sample result: