I’m trying to build an API request to mark an alert as read using it’s UserNotificationId which I can get, but I’m having issues with the syntax.
The end point I’m using is the following /odata/alerts/UiPath.Server.Configuration.OData.MarkAsRead, and I pass the UserNotificationId in the body as per the following syntax
I get error 400 bad request
Could someone please help with this?
The error you’re encountering might be due to issues with the request payload you’re sending to mark an alert as read using the UiPath Orchestrator API. The JSON payload you’ve provided seems to have an issue with the “ids” array. Ensure that you’re passing the UserNotificationId correctly and without extra spaces.
Thank you for your response, but I’m still having the same issue, I’m getting this response
“message”: “markAsReadParameters must not be null”,
Hope you are passing appropriate id by replacing UserNotificationId in the body. below is example
Request Body :
To get valid Id’s by using a Get call for /odata/Alerts
Yes I’m certainly following these steps, I’m using postman to test this please see below
Try with lower case: “ids” instead of “Ids”.