You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DSpace Technical Support
Hi,
That 401 error is telling you that you must be authenticated to use that REST API endpoint. It's likely that either you are not authenticated, or you are not passing the *required* authentication information in the POST request. You MUST pass the `Authorization` header to any endpoint that requires authentication. Examples can be found in the REST Contract documentation for Authentication (see the "Status" examples on how to use the status endpoint with the "Authorization" header): https://github.com/DSpace/RestContract/blob/main/authentication.md
Since it looks like you are building custom code into the User Interface, you might want to look at how other places in the codebase structure the POST request and use a similar pattern. You also could look at using Angular debugging tools to understand where your custom code might be breaking, e.g. https://angular.io/guide/devtools