Bearer token for authentication
The tenant ID to scope the announcement
Path Parameters
The unique identifier of the announcement to dismiss
Response
Indicates if the request was successful
curl -X POST "https://api.example.com/api/v2/admin/announcements/1/dismiss" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-Tenant-ID: your-tenant-id"
{
"success": true,
"message": "Announcement dismissed"
}
Notes
- This endpoint creates or updates an
announcement_reads record for the current user
- Sets the
dismissed flag to true and dismissed_at timestamp to the current time
- Dismissed announcements will not appear in the
/active endpoint results
- If the announcement is already dismissed, the operation is idempotent
- Only announcements belonging to the specified tenant can be dismissed
- Dismissing an announcement also automatically marks it as read