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/a95af471-2ed7-499e-a7cd-0e6cfca16ed1n%40googlegroups.com.

Reply via email to