API ReferenceAdmin: Reports
Take a moderation action on a report.
Current actions are remove_content, dismiss, warn_user, and ban_user, with optional adminNote. remove_content soft-deletes the original content and resolves every report on the same target. Legacy status transitions remain accepted by the existing admin web client.
Authorization
bearerAuth AuthorizationBearer <token>
AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/admin/reports/string" \ -H "Content-Type: application/json" \ -d '{ "action": "remove_content", "adminNote": "Content violates the community policy." }'{ "data": { "report": { "id": "rpt_01jq8za4f6h8j0k2l4m6n8p0q2", "reporterId": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "reporter": { "id": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "name": "Aisha Hassan" }, "targetType": "review", "targetId": "rev_01jq8z9d5f7h9j1k3l5m7n9o1p", "targetAuthorId": "usr_01jq8z4c3l7i8o9n0q1s4t6u8w", "reason": "harassment", "reportType": "harassment", "note": "Review contains profanity targeting our staff by name.", "priority": "high", "status": "resolved", "resolution": "content_removed", "reportsCount": 3, "content": { "text": "The reported review snapshot.", "rating": 1, "createdAt": "2026-05-19T21:40:00.000Z", "author": { "id": "usr_01jq8z4c3l7i8o9n0q1s4t6u8w", "name": "Review Author" } }, "assignedAdminId": null, "resolvedBy": "usr_admin_01jq8z4f3g5h7j9k1l3m5n", "adminNote": "Removed after moderation review.", "createdAt": "2026-05-19T22:14:08.000Z", "resolvedAt": "2026-05-20T08:00:00.000Z", "rejectedAt": null } }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "FORBIDDEN", "message": "You are not allowed to perform this action." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found.", "targetType": "food_truck", "targetId": "trk_01jq8z2hf5t8z4w9d8x4mzg2p3" }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "VALIDATION_ERROR", "message": "One or more fields are invalid.", "fields": [ { "path": "email", "rule": "email", "message": "Must be a valid email address." } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}