From 037d8e818da8af7da1df9b45f79889c12836169a Mon Sep 17 00:00:00 2001 From: Stefan Scheidewig Date: Thu, 15 Apr 2021 17:59:39 +0200 Subject: [PATCH] Added a route definition to bulk-delete attachments --- .../src/main/resources/docspell-openapi.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/restapi/src/main/resources/docspell-openapi.yml b/modules/restapi/src/main/resources/docspell-openapi.yml index 59dc743f..01f4bade 100644 --- a/modules/restapi/src/main/resources/docspell-openapi.yml +++ b/modules/restapi/src/main/resources/docspell-openapi.yml @@ -2789,6 +2789,28 @@ paths: schema: $ref: "#/components/schemas/BasicResult" + /sec/attachments/delete: + post: + tags: + - Attachment (Multi Edit) + summary: Delete multiple attachments. + description: | + Given a list of attachment ids, deletes all of them. + security: + - authTokenHeader: [ ] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/IdList" + responses: + 200: + description: Ok + content: + application/json: + schema: + $ref: "#/components/schemas/BasicResult" + /sec/queue/state: get: tags: [ Job Queue ]