Hi Kwan, I'd recommend looking at the DSpace logs to see if any information appears to provide you hints. It's possible for an error to appear in the logs which is *not* returned in the REST API response.
At a basic level though, it might be that you need to specify a "language" field for each metadata value, as this section of the docs implies it might be needed for a "MetadataEntry Object": https://wiki.lyrasis.org/display/DSDOC6x/REST+API#RESTAPI-MetadataEntryO I also should stress that the DSpace 7 REST API has much better support & more consistent behavior (as it drives the new User Interface). The older DSpace 6 REST API could be very buggy and hard to work with. Tim On Thursday, September 28, 2023 at 5:46:26 AM UTC-5 [email protected] wrote: > Hello, > > I'm using DSpace 6, and I'm trying to update some metadata using the REST > API. I've used a PUT request to update the metadata, and I didn't see any > errors. However, it looks like nothing actually changed or got updated. > Does anyone have any idea on how I can fix this? > > notes: > > - The server is set up with HTTPS. > - I've logged in and have my session stored as a cookie.txt file for > my code. > - The record I'm trying to update is may not have " dc.identifier.doi" > in the records. > > Here's a sample of the curl code I've tried: > > curl -X PUT -H "Content-Type: application/json" -d > "[{\"key\":\"dc.identifier.doi\",\"value\":\"{doi > number}\"},{\"key\":\"dc.relation.uri\",\"value\":\"{relation uri url}\"}]" > "http://dummyaddress/rest/items/{itemcode}/metadata" -b cookies.txt > > Thank you very much! > Kwan > > > > > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/bd9ec6bf-15ed-42bd-8e6d-8054d8406787n%40googlegroups.com.
