USACE / instrumentation

Instrumentation project issue tracking and project planning
MIT License
5 stars 1 forks source link

Endpoint to mark all Instrument/Profile Alerts as read #5

Open KevinJJackson opened 3 years ago

KevinJJackson commented 3 years ago

Currently the only way to mark an alert as read is to send a request for each alert, which requires a lot of network requests to mark a batch of alerts as read.

Proposal: New endpoint that takes an optional instrument_id as a param that marks all associated alerts with the profile as read. If the instrument_id is provided, mark only those instrument alerts as read for that user profile. If not provided, mark all subscribed instruments alerts as read for that user profile.

cc: @brettpalmberg