public class ItemMetadataValueRemovePatchOperation
extends MetadataValueRemovePatchOperation<Item>
Submission "remove" PATCH operation.
Path used to remove a specific metadata value using index:
"/sections/<:name-of-the-form>/<:metadata>/<:idx-zero-based>"
Example:
curl -X PATCH http://${dspace.url}/api/submission/workspaceitems/<:id-workspaceitem> -H "
Content-Type: application/json" -d '[{ "op": "remove", "path": "
/sections/traditionalpageone/dc.title/1"}]'
Path used to remove all the metadata values for a specific metadata key:
"/sections/<:name-of-the-form>/<:metadata>"
Example:
curl -X PATCH http://${dspace.url}/api/submission/workspaceitems/<:id-workspaceitem> -H "
Content-Type: application/json" -d '[{ "op": "remove", "path": "
/sections/traditionalpageone/dc.title"}]'
- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)