Skip to main content
POST
/
report
/
status
cURL
curl --request POST \
  --url https://our-secret-api-url.com/report/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "reportId": 123,
  "status": "reviewing",
  "targetUserId": 123,
  "targetPostId": 123,
  "notes": "<string>"
}
'
{
  "id": 123,
  "reportId": 123,
  "actionTaken": "reviewing",
  "actionTakenBy": 123,
  "actionTakenAt": "2023-11-07T05:31:56Z",
  "notes": "<string>"
}
User has to be an ADMIN to be able to use this API.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-KEY
string
required

API key required for authentication

Body

application/json
reportId
integer
required
status
enum<string>
required
Available options:
reviewing,
no_action,
suspended
targetUserId
integer
required
targetPostId
integer | null
notes
string | null

Response

Report status updated successfully

id
integer
required
reportId
integer
required
actionTaken
enum<string>
required
Available options:
reviewing,
no_action,
suspended
actionTakenBy
integer
required
actionTakenAt
string<date-time>
required
notes
string | null