From a728866ebb2ade33e5ae4d0921b867743b787f98 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: