I'm trying to edit metadata via REST API but I can't get it to work. Documentation says that entrypoint looks like this: PUT /items/{item id}/metadata - Update metadata in item. You must put a MetadataEntry
When I try with CURL: curl -X PUT -H "Content-Type: application/json" -d '{"key":"dc.description.abstract", "value":"hello", "language":"no"}' "http://dummy_dspace_address.com:8080/rest/items/0000c4c0-7e11-4a18-bf94-8192275e50e4/metadata" result is this: Can not deserialize instance of org.dspace.rest.common.MetadataEntry[] out of START_OBJECT token at [Source: org.glassfish.jersey.message.internal. ReaderInterceptorExecutor$UnCloseableInputStream@7780731e; line: 1, column: 1] If I try like this: curl -X PUT -H "Content-Type: application/json" -d "key=dc.description.abstract&value=hello&language=no" "http://dummy_dspace_address.com:8080/rest/items/0000c4c0-7e11-4a18-bf94-8192275e50e4/metadata" I get this: Unrecognized token 'key': was expecting ('true', 'false' or 'null') at [ Source: org.glassfish.jersey.message.internal. ReaderInterceptorExecutor$UnCloseableInputStream@5c8c7a38; line: 1, column: 5] REST API is working otherwise, I can log in etc. I also tried with cookies enabled (i.e as an authenticated user) but there was no difference. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.