Skip to main content
POST
/
reports
Create Report
curl --request POST \
  --url https://staging-api.polysimulator.com/reports \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>",
  "reported_user_id": 123,
  "reported_comment_id": 123,
  "description": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

authorization
string | null

Query Parameters

Body

application/json

Request to report a user or comment.

reason
string
required
Pattern: ^(spam|harassment|inappropriate|other)$
reported_user_id
integer | null
reported_comment_id
integer | null
description
string | null
Maximum string length: 500

Response

Successful Response