Skip to main content
POST
/
reports
/
add
add
curl --request POST \
  --url http://localhost:8000/v1/reports/add \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "Bad review",
  "reporter": "670c22148db1109908c9f6b9",
  "review": "670c3a4ede2e2e9ee7d34d0f"
}
'
{
  "data": {
    "report": {
      "__v": 0,
      "_id": "670e386a648069ca43164df6",
      "createdAt": "2024-10-15T09:39:54.100Z",
      "isResolved": false,
      "reason": "Bad review",
      "reporter": "6708d54f9c193b2aeae09b80",
      "review": "670c3a4ede2e2e9ee7d34d0f",
      "updatedAt": "2024-10-15T09:39:54.100Z"
    }
  },
  "error": null
}

Body

application/json
reason
string
Example:

"Bad review"

reporter
string
Example:

"670c22148db1109908c9f6b9"

review
string
Example:

"670c3a4ede2e2e9ee7d34d0f"

Response

add - success

data
object
error
unknown