Report a Post
Endpoint allows to report a post
Report existing post
POST
https://api.whisk.com/v2/posts/{post_id}/report
Method allows usser to report specific post or review. Review or post could be reported by post_id
. Reported post will be hide from all pages. Report will be submitted to Whisk moderators team and could be accepted or rejected. If moderators team decide that post/review is not harmful they'll accept it and post will apper everuwhere automatically. If they'll reject it - post will be hidden forever.
Query Parameters
Name | Type | Description |
---|---|---|
post_id* | String | Post id to report |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | User Access token to authorize the API usage. For more information, see Authentication |
Request Body
Name | Type | Description |
---|---|---|
report_info* | Object | An object for report info |
reason* | Enum | Reason for report, predefined. REPORT_REASON_INVALID; REPORT_REASON_SPAM; REPORT_REASON_NSFW; REPORT_REASON_IP_INFRINGEMENT; |
email* | String | Reporter's email. So for moderators team it would be possible to contact him if needed |
comment | String | Comment submitted by reporter |
Request body
Sample request and response
curl -X POST "https://api.b2c.whisk-dev.com/v2/posts/ed4e8ddf1d9349c7b1c0695d9c4741ea/report" -H "accept: application/json" -H "Authorization: Bearer " -H "Content-Type: application/json" -d "{ "report_info": { "reason": "REPORT_REASON_SPAM", "email": "[email protected]", "comment": "test" }}"
Last updated