Set Notification Read Status
Unless your workflow must support use of read notifications, use DELETE USER NOTIFICATION instead.
Unless your workflow must support use of read notifications, use DELETE USER NOTIFICATION instead.
This marks a notification as being in READ status. That will prevent the notification from being returned in a call to List User Notifications unless the default filters are overridden. Notifications that are marked as read will be automatically deleted after some time.
- Calling this over and over again for an event, or calling it on events where the reader is not the person that the reply is directed to, or calling it against events that are not type ChatReply or ChatQuote is inappropriate use of the API.
URL Arguments
- userid : (required) The ID of the user marking the notification as read. This is used to ensure a user can't mark another user's notification as read.
- notificationid : (required) The unique ID of the notification being updated.
- read : (required) The read status (true/false) for the notification. You can pass false to mark the notification as unread.
Parameters
Values in the path and query string.
appid path The application the user belongs to.
Example:your-app-id userid path Required. The user marking the notification used to ensure a user can't mark another user's notification.
Example:u-8842 notificationid path Required. The unique ID of the notification being updated.
read query Required. The read status true/false to set. Pass false to mark the notification unread again.
Example:true Status codes
Every JSON response uses the API result envelope.
200 OK: success data is the updated UserNotification. ApiResult 400 BadRequest: the required read parameter was not provided. ApiResult 403 Forbidden: request is not authorized with a valid token, or the token does not match this appid. ApiResult 500 Internal Server Error ApiResult {
"message": "",
"errors": {},
"data": {
"kind": "notification",
"id": "602456795617e108441660da",
"added": "2021-02-10T21:56:09.9738413Z",
"userid": "bobsmith2",
"ts": 637485909699738400,
"whenread": "2021-02-10T21:56:26.9429317Z",
"isread": true,
"notificationtype": "chatquote",
"chatroomid": "600d78d45617e20e34c39dd5",
"chatroomcustomid": "new-york-city-club",
"commentconversationid": "",
"commentconversationcustomid": "",
"chateventid": "602456795617e108441660d9",
"commentid": ""
}
}