@cpod/sdk - v0.2.7
    Preparing search index...

    Function markNotificationRead

    • Mark a notification as read or unread

      Parameters

      • id: string

        The unique identifier of the notification

      • isRead: boolean = true

        Read status (default: true)

      Returns Promise<SimpleResponse>

      Confirmation of status update

      401 - Not authenticated

      404 - Notification not found

      import { markNotificationRead } from "@cpod/sdk";

      // Mark as read
      await markNotificationRead("notification-123");

      // Mark as unread
      await markNotificationRead("notification-123", false);