TypeScript
const options = { method: 'POST', headers: {cookie: 'session=', 'Content-Type': 'application/json'}, body: JSON.stringify({action: 'mark_read', ids: ['<string>'], dryRun: false}) }; fetch('https://api.example.com/v1/regions/global/notifications/inbox/bulk', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "action": "<string>", "requested": 123, "succeeded": 123, "failed": 123, "dryRun": true, "wouldAffect": 123, "preview": [ { "id": "<string>", "category": "system", "priority": "low", "title": "<string>", "message": "<string>", "read": true, "createdAt": "2023-11-07T05:31:56Z", "resourceType": "<string>", "resourceId": "<string>", "actionUrl": "<string>", "clickActionUrl": "<string>", "primaryActionLabel": "<string>", "primaryActionUrl": "<string>", "secondaryActionLabel": "<string>", "secondaryActionUrl": "<string>", "readAt": "2023-11-07T05:31:56Z" } ], "results": [ { "id": "<string>", "status": "success", "error": {} } ] }, "meta": {} }
Execute bulk operations on notifications (mark_read, mark_unread, delete, archive)
Session-based authentication via HTTP-only cookie
Action to perform
mark_read
mark_unread
delete
archive
Notification IDs
1 - 1000
Preview mode
Bulk operation results (Multi-Status)
true
Show child attributes
Was this page helpful?