Skip to main content

markNotificationsAsRead

Marks notifications as read for the current user. Can mark specific notifications by ID, by group key, or all unread notifications at once.

This is an asynchronous operation that returns immediately with a process_id that can be used to track the operation status.

Authentication and Authorization

Authentication is required. Users can only mark their own notifications as read.

Business Rules

  • Either notificationIds, groupKeys, or markAll must be provided
  • When markAll is true, all unread notifications for the current user will be marked as read
  • When notificationIds is provided, those specific notifications will be marked as read
  • When groupKeys is provided, all notifications matching those group keys will be marked as read
  • notificationIds and groupKeys can be combined (OR logic)
  • If markAll is true, notificationIds and groupKeys are ignored

Possible Errors

  • **Validation error**: None of notificationIds, groupKeys, or markAll was provided
  • **Authorization error**: Attempting to mark a notification that belongs to another user
markNotificationsAsRead(
input: MarkNotificationsAsReadInput!
): AsynchronousActionResponse!

Arguments

markNotificationsAsRead.input ● MarkNotificationsAsReadInput! non-null input

Parameters for MarkNotificationsAsRead

Type

AsynchronousActionResponse object

Asynchronous action response type