MngReadNotify¶
MngReadNotify
Description: Marks one notification of the currently authenticated manager session as read.
The command changes only the status of the notification and only for its owner.
It sets status to READ (2) and stores the moment of reading in open_time.
To mark every notification at once use MngReadAllNotify.
This method is available for:
SESSION_MANAGERSESSION_ADMINSESSION_DEALER
Note
Request should include Authorization token
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
| id | int | Yes | Notification id from MngGetNotifyList or from the notify event. Must be greater than 0 |
The manager identity is resolved from the current session and cannot be passed in the request.
Request Example¶
{
"id": 1042
}
Response Example¶
{
"data": "OK"
}
Errors¶
| HTTP code | error | When |
|---|---|---|
| 400 | INVALID_DATA |
id is missing, is not an integer or is less than 1 |
| 403 | INVALID_ACCESS |
The manager cannot be resolved from the session |
| 404 | NOTIFY_NOT_FOUND |
No such notification, it has expired, or it belongs to another user. The three cases are not distinguished on purpose |
| 500 | INVALID_UPDATE_NOTIFY |
Storage error |
Calling the command for a notification that is already read succeeds and keeps
its open_time.