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, ormarkAllmust be provided - When
markAllis true, all unread notifications for the current user will be marked as read - When
notificationIdsis provided, those specific notifications will be marked as read - When
groupKeysis provided, all notifications matching those group keys will be marked as read notificationIdsandgroupKeyscan be combined (OR logic)- If
markAllis true,notificationIdsandgroupKeysare ignored
Possible Errors
- **Validation error**: None of
notificationIds,groupKeys, ormarkAllwas 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