Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.opigno.com/llms.txt

Use this file to discover all available pages before exploring further.

Opigno Enterprise API provides mutations to update the read status of notifications for the current user.

Single notification

To mark a single notification as read, readNotification mutation should be executed. It has one required incoming argument - notificationId. Use this mutation to indicate that a notification has been viewed, ensuring it no longer appears as unread for the current API user. Response returns the updated Notification object.
mutation readNotification {
  readNotification(notificationId: 1) {
    response {
      id
      status
    }
    errors
  }
}

All notifications

To mark all notifications related to the current API user as read, use mutation readAllNotifications. If the mutation executed without any errors, a boolean value will be returned as a response indicating the execution status.
mutation readAllNotifications {
  readNotification {
    response
    errors
  }
}