Skip to content

MngReadAllNotify

Description: Marks all notifications of the currently authenticated manager session as read.

This method is available for:

  • SESSION_MANAGER
  • SESSION_ADMIN
  • SESSION_DEALER

Request Parameters

The manager identity is resolved from the current session.

Name Type Required Description
target int No Application whose notifications are marked as read: 1 - CRM, 2 - back office

With target only the notifications of that application and the common ones (target = 0) are marked as read. Without target all notifications of the manager are marked as read. An interface should always pass its own application.

A common notification has one read status for both applications: after this call it is read in the other application too. Notifications of the other application stay unread.

target requires access to the application: access_crm = 1 for 1, access_backoffice = 1 for 2. A super admin may pass both.

Request Example

{
  "target": 1
}

Response Example

{
  "data": "OK"
}

The response is the same when there was nothing to change.

Errors

Status error When
400 INVALID_DATA target is not 1 or 2
403 INVALID_ACCESS The manager of the session cannot be resolved
403 NOTIFY_TARGET_FORBIDDEN The manager has no access to the requested application