diff --git a/bitstreams.md b/bitstreams.md index ff58200a..c27f6707 100644 --- a/bitstreams.md +++ b/bitstreams.md @@ -149,6 +149,22 @@ Return codes: * 403 Forbidden - if you are not logged in with sufficient permissions to see the bitstream metadata * 422 Unprocessable Entity - if the provided uuid cannot be resolved to an item regardless to the item status +### byItemId +**/api/core/bitstreams/search/byItemId?uuid=<:uuid>&name=<:bundle_name>&filterMetadata=<:filterMetadata>&filterMetadataValue=<:filterMetadataValue>** + +It returns the bitstream matching the given parameters. + +The supported parameters are: +* `uuid`: mandatory, uuid of the item +* `name`: mandatory, name of the bundle +* `filterMetadata`: metadata fields to filter by (repeatable) +* `filterMetadataValue`: values of the metadata to filter by (repeatable) + +Return codes: +* 200 OK - if the operation succeed. This will contain the bitstreams +* 400 Bad Request - if the cardinality of the `filterMetadata` and `filterMetadataValue` parameters is not the same +* 422 Unprocessable Entity - if the provided uuid cannot be resolved to an item + ## DELETE Method Delete a bitstream. Works for normal bitstreams in an Item (bundle), and a community or collection logo