Skip to main content

bulkNotificationAction()

bulkNotificationAction(request: BulkActionRequest): Promise<SimpleResponse>

Defined in: packages/core/src/index.ts:1566

Perform bulk actions on notifications (restore or delete multiple)

Parameters

ParameterTypeDescription
requestBulkActionRequestBulk action request with action type and notification IDs

Returns

Promise<SimpleResponse>

Confirmation of bulk operation

Throws

401 - Not authenticated

Example

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

// Restore multiple notifications
await bulkNotificationAction({
action: "restore",
notification_ids: ["notif-1", "notif-2"],
});

// Delete multiple notifications
await bulkNotificationAction({
action: "delete",
notification_ids: ["notif-3", "notif-4"],
});