Skip to main content
DELETE
/
report
cURL
curl --request DELETE \
  --url https://our-secret-api-url.com/report \
  --header 'Authorization: Bearer <token>' \
  --header 'X-API-KEY: <x-api-key>'
{
  "id": 123,
  "targetUserId": 123,
  "reason": "kandungan_tidak_sesuai",
  "status": "reviewing",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "reporterUserId": 123,
  "targetPostId": 123,
  "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

Query Parameters

reportId
integer
required

Response

Report deleted successfully

id
integer
required
targetUserId
integer
required
reason
enum<string>
required
Available options:
kandungan_tidak_sesuai,
isu_keselamatan,
penyalahgunaan,
spam,
kandungan_palsu,
kandungan_sensitif,
pelanggaran_hak_cipta,
maklumat_salah
status
enum<string>
required
Available options:
reviewing,
no_action,
suspended
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
reporterUserId
integer
required
targetPostId
integer | null
notes
string | null