def put(self): user_id = get_jwt_identity().get('id') all_notifications = Notification.mark_all_as_read(user_id) data = { "message": "Notifications received", "notifications": notifications_schema.dump(all_notifications) } return custom_json_response(data, 200)