From a6b8a8a3e99c981450bdf03590eeb1894fe7ab76 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Thu, 22 Dec 2022 22:42:51 +0000 Subject: [PATCH] docs: add "reset" parameter to post endpoint Signed-off-by: Pedro Lamas --- docs/web_api.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/web_api.md b/docs/web_api.md index 3cad6cb..f98fedf 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -2665,7 +2665,8 @@ Content-Type: application/json "job1.gcode", "job2.gcode", "subdir/job3.gcode" - ] + ], + "reset": false } ``` @@ -2679,12 +2680,18 @@ JSON-RPC request: "job1.gcode", "job2.gcode", "subdir/job3.gcode" - ] + ], + "reset": false }, "id": 4654 } ``` +Parameters: + +- `reset`: A boolean value indicating whether Moonraker should clear the + existing queued jobs before adding the new jobs. Defaults to `false`. + Returns: The current state of the job queue: