POST
MarkAsRead
MarkAsRead updates the status of specific notifications or all notifications to "read".
/api.v1.notification.NotificationService/MarkAsRead Bearer required01
Request
MarkAsReadRequest
MarkAsReadRequestapi.v1.notification.MarkAsReadRequest2 fields
MarkAsReadRequest specifies which notifications to acknowledge.
idsarrayuint32[]List of notification IDs to mark as read.
allboolIf true, marks every notification for the authenticated user as read.
{
"ids": [
1
],
"all": false
}02
Response
MarkAsReadResponse
MarkAsReadResponseapi.v1.notification.MarkAsReadResponse1 fields
MarkAsReadResponse confirms the update.
messagestringA descriptive message indicating the result.
{
"message": "success"
}03
Error handling
Common failure codes
unauthenticatedThe Bearer token is missing or invalid.
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.