Class ItemMetadataValueReplacePatchOperation


  • public class ItemMetadataValueReplacePatchOperation
    extends MetadataValueReplacePatchOperation<org.dspace.content.Item>
    Submission "replace" PATCH operation. The replace operation allows to replace existent information with new one. Attempt to use the replace operation to set not yet initialized information must return an error. Example: curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " Content-Type: application/json" -d '[{ "op": "replace", "path": " /sections/traditionalpageone/dc.title/0", "value": {"value": "Add new title", "language": "en"}}]' It is also possible to change only a single attribute of the MetadataValueRest (except the "place"). Example: curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " Content-Type: application/json" -d '[{ "op": "replace", "path": " /sections/traditionalpageone/dc.title/0/language", "value": "it"}]'
    Author:
    Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
    • Constructor Detail

      • ItemMetadataValueReplacePatchOperation

        public ItemMetadataValueReplacePatchOperation()