TypeScript
const options = {method: 'DELETE', headers: {cookie: 'session='}}; fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}/read', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "id": "<string>", "read": false }, "meta": {} }
Mark notification as unread
Session-based authentication via HTTP-only cookie
Marked as unread
true
Show child attributes
Was this page helpful?