Skip to main content

NOTIFICATION API Reference

Module Information

Service Files:

  • Private: service/private/notification.js

Available Services: 1 Documented Services: 1


notification.clear_all

Clear MFS file notifications and chat message notifications across multiple hubs for the authenticated user. Iterates over the provided nodes map calling stored procedure mfs_clear_notifications per hub, then iterates over the messages map calling stored procedure channel_clear_notifications per hub. Hubs with no db_name are silently skipped.

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (7)

Endpoint:

https://hostname/-/svc/notification.clear_all

Parameters

ParameterTypeRequiredDefaultDescription
nodesobjectYes--
messagesobjectYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error CodeHTTP StatusDescription
MISSING_NODES-nodes parameter is required but was not provided
MISSING_MESSAGES-messages parameter is required but was not provided
INTERNAL_ERROR-Failed to clear notifications via stored procedure mfs_clear_notifications or channel_clear_notifications

  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes