Create and manage system notices displayed in the sidebar and on the login page.
Notices are short informational messages displayed to users in the sidebar notice panel and optionally on the login screen. They are commonly used for maintenance announcements, policy updates, and urgent alerts.All state-mutating requests require a CSRF token from GET /api/security/csrf-token.
GET /api/noticesReturns all active notices visible to the authenticated user. The list is filtered by account type so each user only sees notices targeted at them.Required permission:api.system.notices.manage
curl -X GET "https://propops.yourcompany.com/api/notices" \ -H "Authorization: Bearer <token>"
{ "success": true, "data": [ { "id": 1, "title": "Planned maintenance window", "body": "The system will be unavailable on Sunday 23rd June from 02:00–04:00 for a scheduled upgrade.", "type": "warning", "show_on_login": true, "target_account_types": [1, 2, 3, 4, 5], "created_by": "Admin", "created_at": "2024-06-14T09:00:00Z", "expires_at": "2024-06-24T04:00:00Z" } ], "count": 1, "message": "Operation completed successfully"}