Skip to main content
POST
Create Report
Submits a report on an entity or comment. If a report already exists for the target, the authenticated user’s report is added to it (increments reporterCount). If the same user has already reported the same target, a 200 is returned without creating a duplicate. Authentication required.

Body Parameters

string
required
The UUID of the entity or comment being reported.
string
required
The type of content being reported. One of: entity, comment.
string
required
The reason for the report (e.g., “spam”, “harassment”, “misinformation”). Must not be empty.
string
Optional additional context or description provided by the reporter.

Response

Returns 201 Created when a new report is created:
Returns 200 OK when an existing report is updated with a new reporter:
Returns 200 OK when the user has already reported this target:

Error Responses

The error message reflects the reported type, e.g. "entity not found" or "comment not found".