You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bitstreams.md
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,32 +205,45 @@ Return codes:
205
205
* 403 Forbidden - if you are not logged in with sufficient permissions to see the bitstream metadata
206
206
* 422 Unprocessable Entity - if the provided uuid cannot be resolved to an item regardless to the item status
207
207
208
-
## DELETE Method
208
+
## Bitstream Deletion
209
209
210
-
### Single Bitstream Delete
211
-
Delete a bitstream. Works for normal bitstreams in an Item (bundle), and a community or collection logo
210
+
### Deletion of a single bitstream
212
211
212
+
**DELETE /api/core/bitstreams/<:bitstream_uuid>**
213
+
214
+
Deletes the bitstream identified by the given UUID. This endpoint supports deleting bitstreams associated with items (via bundles), as well as bitstreams used as community or collection logos.
215
+
216
+
Return codes:
213
217
* 204 No content - if the operation succeed
214
218
* 401 Unauthorized - if you are not authenticated
215
219
* 403 Forbidden - if you are not loggedin with sufficient permissions
216
220
* 404 Not found - if the bitstream doesn't exist (or was already deleted)
217
221
* 422 Unprocessable Entity - if the bitstream is a community or collection logo
218
222
219
-
### Multiple Bitstreams Delete
220
-
Delete a list of Bitstreams in one request. This will work for any list of Bitstreams that are attached to an item, will mostly be used in the item admin edit
223
+
### Deletion of multiple bitstreams in a single request
224
+
225
+
**PATCH /api/core/bitstreams**
226
+
227
+
A `PATCH` request can be used to delete multiple bitstreams in a single request. This endpoint supports deleting any number of bitstreams attached to an item and is primarily intended for use by the item administration edit interface (in the Angular UI).
221
228
229
+
Return codes:
222
230
* 204 No content - if the operation succeeded
223
231
* 401 Unauthorized - if you are not authenticated
224
232
* 403 Forbidden - if you are not logged in with sufficient permissions
225
233
* 404 Not found - if any of the bitstreams in the list haven't been found or are already deleted
226
234
* 422 Unprocessable Entity - If one or more of the given Bitstreams aren't attached to an Item.
0 commit comments