From a129f8365b83381776e71f8bfb3a939476fe57cf Mon Sep 17 00:00:00 2001 From: David Bailey Date: Thu, 27 Jul 2017 18:54:02 +0100 Subject: [PATCH] Update README for multi action --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 0c7c643..deca307 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,34 @@ Below is a list of currently supported actions. Requests with invalid actions or ] ``` +* **multi** + + Performs multiple actions in one request, returning an array with the response of each action (in the given order). + + *Sample request*: + ``` + { + "action": "multi", + "params": { + "actions": [ + {"action": "deckNames"}, + { + "action": "browse", + "params": {"query": "deck:current"} + } + ] + } + } + ``` + + *Sample response*: + ``` + [ + ["Default"], + [1494723142483, 1494703460437, 1494703479525] + ] + ``` + * **addNote** Creates a note using the given deck and model, with the provided field values and tags. Returns the identifier of