Push notification policy (admin)
HTTP routes and behavior for push notification policy (admin).
GET|PUT /api/admin/push-notifications # { enabled, categories: { <preference key>: bool } }Requires admin:*. The push_notification_policy settings row stores the server master and allowed categories. PUT updates supplied fields, preserves omitted categories, and rejects unknown category keys. Everyone may read this policy in their personal preference response, but only admins may change it. The default allows all categories; individual defaults and opt-outs still determine recipients. Repair reviews and related agent events share agent_action_pending; investigation questions share the admin issue_created choice. Only a successful closure of the recipient’s own report uses issue_report_update (Problem resolved).