832 B
832 B
API Docs
Report
Details for report api
####Endpoint
{warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | user/report | Authorization : Bearer {token} |
URL Params
None
Data Params
{
"type": 1, //1: User, 2: Post, 3: Comment
"reported_for": 8, //Id of User/Post/Comment
"subject": "Spam",
"description": "Fake profile"
}
{success} Success Response
####Code 200
####Content
{
"message": "Report submitted successfully!",
"status": 200
}
{danger} Unauthenticated Response
####Code 403
####Content
{
"message": "You have already submitted report request for this!"
}