From bd1a6e528eed8aaec07bb8f2c2ff8307a15a8eef Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 17 Oct 2020 21:55:05 +0200 Subject: [PATCH] Public API: Add media deletion Signed-off-by: David Mehren --- docs/dev/public_api.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/dev/public_api.yml b/docs/dev/public_api.yml index 62a131b85..fecc46375 100644 --- a/docs/dev/public_api.yml +++ b/docs/dev/public_api.yml @@ -537,6 +537,29 @@ paths: "$ref": "#/components/responses/UnauthorizedError" '403': "$ref": "#/components/responses/ForbiddenError" + /media/{filename}: + delete: + tags: + - media + summary: Delete the specified file + operationId: deleteMedia + parameters: + - name: filename + in: path + required: true + description: The name of the file to be deleted. + content: + text/plain: + example: e18d1b83e1821128615bad849ad0655a.jpg + responses: + '204': + "$ref": "#/components/responses/SuccessfullyDeleted" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + "$ref": "#/components/responses/ForbiddenError" + '404': + "$ref": "#/components/responses/NotFoundError" /monitoring: get: tags: