From 728e37b96b381b790b3d955f0ea2329df21f4c76 Mon Sep 17 00:00:00 2001 From: Sascha Szott Date: Wed, 14 Aug 2024 11:54:04 +0200 Subject: [PATCH] add description of DELETE method (workspace items) --- workspaceitems.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/workspaceitems.md b/workspaceitems.md index b85c0f1b..6fb652bd 100644 --- a/workspaceitems.md +++ b/workspaceitems.md @@ -207,6 +207,15 @@ It would respond with: * 403 Forbidden - if you are not logged in with sufficient permissions to view the workspace item * 204 if the workspace item doesn't exist +## DELETE Method +**/api/submission/workspaceitems/<:ws-item-uuid>** +Deletes workspace item with the given UUID. The deletion includes the deletion of the item object that is associated to the given workspace item. +Available Response Codes are + +* 204 No content - if the operation succeed +* 401 Unauthorized - if the requester is not authenticated +* 403 Forbidden - if the requester does not have sufficient permissions ((deletion of workspace items can only be requested by the submitter of the workspace item or administrators) +* 404 Not found - if the workspace item doesn't exist