Moderation is the process by which administrators review, approve, or reject user-submitted fraud reports to ensure quality and accuracy.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/4rt21/backend-proyecto/llms.txt
Use this file to discover all available pages before exploring further.
Moderation Workflow
When users submit fraud reports, they enter a moderation queue withstatus_id: 1 (pending). Administrators review these reports and make decisions about their visibility.
Report Submission
User creates a fraud report through
/users/report or /reportsInitial status: Pending (status_id: 1)Admin Review
Administrator reviews the report details:
- Title and description quality
- Evidence (screenshots)
- URL validity
- Category appropriateness
Decision
Admin approves or rejects:
- Approve: Set
status_id: 2(aprobada) - Reject: Set
status_id: 3(rechazada)
Report Statuses
Pending
Status ID: 1Awaiting admin review
Approved
Status ID: 2Publicly visible
Rejected
Status ID: 3Hidden from public
Approving Reports
To approve a report, update itsstatus_id to 2:
Rejecting Reports
To reject a report, update itsstatus_id to 3:
Rejected reports remain in the database but are hidden from public endpoints. Consider adding a reason field for transparency with users.
Moderating Report Content
Administrators can also modify report content during review:Filtering Pending Reports
Administrators can filter reports by status to view their moderation queue:Dashboard Metrics
The admin dashboard provides moderation statistics:The dashboard helps administrators track moderation workload and identify reports that need review.
Deleting Reports
In cases where a report violates policies or contains inappropriate content, administrators can permanently delete it:User Management
Administrators can also manage users through admin endpoints:View All Users
View User Details
Update User Information
Administrators can modify user accounts:- Correcting user information
- Resolving email conflicts
- Managing user roles (future enhancement)
User Statistics
Get total user count:Best Practices
Review Reports Promptly
Review Reports Promptly
Timely moderation ensures that legitimate fraud alerts reach users quickly while preventing misinformation from spreading.
Provide Feedback
Provide Feedback
When rejecting reports, consider implementing a feedback mechanism to help users understand why their report was rejected and how to improve future submissions.
Monitor Trends
Monitor Trends
Use the dashboard to identify common fraud categories and patterns. This helps prioritize review efforts and identify emerging threats.
Preserve Evidence
Preserve Evidence
Avoid deleting reports unless absolutely necessary. Rejected reports can serve as valuable data for understanding fraud patterns and improving detection.
Verify URLs
Verify URLs
Always verify that report URLs are valid and accessible. Update or correct URLs during the review process if needed.
Moderation API Reference
Here’s a quick reference for common moderation tasks:| Task | Endpoint | Method | Body |
|---|---|---|---|
| View pending reports | /reports?status_id=1 | GET | - |
| Approve report | /reports/:id | PUT | {"status_id": 2} |
| Reject report | /reports/:id | PUT | {"status_id": 3} |
| Update content | /reports/:id | PUT | {"title": "...", "description": "..."} |
| Delete report | /reports/:id | DELETE | - |
| Count pending | /reports/count?status_id=1 | GET | - |
| View dashboard | /dashboard | GET | - |
| List users | /admin/user/list | GET | - |
| Update user | /admin/user/:id | PUT | {"name": "...", "email": "..."} |
Future Enhancements
Potential improvements to the moderation system:- Rejection Reasons: Add a field to explain why reports are rejected
- Review History: Track who reviewed each report and when
- Auto-Moderation: Implement basic checks for spam or low-quality submissions
- Bulk Actions: Allow approving/rejecting multiple reports at once
- Appeal Process: Let users request reconsideration of rejected reports
- Moderator Roles: Create different levels of moderator permissions