Skip to content

Commit

Permalink
Merge pull request #285 from DSpace/backport-277-to-dspace-8_x
Browse files Browse the repository at this point in the history
[Port dspace-8_x] Workspace Items: add description of DELETE method
  • Loading branch information
tdonohue authored Aug 27, 2024
2 parents 1ac8b25 + 8eab8b4 commit 27624f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions workspaceitems.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 27624f8

Please sign in to comment.