Reports
4 routes. Paths are relative to https://api.intersink.com/v1.
- POST/reportsSubmit a new report
- PATCH/reports/{id}Update report status (Admin/Moderator)
- GET/reports/myGet all reports submitted by the active profile
- GET/reports/reasonsGet all reporting reasons
Submit a new report
POST/reports
Needs a signed-in user (Bearer token or access_token cookie).
Request body application/json
| Field | Type | Description |
|---|---|---|
| report_reasonrequired | object | ID of the report reason |
| description | string | Detailed description of the report At most 5000 characters. |
| post_id | object | ID of the reported post |
| comment_id | object | ID of the reported comment |
| product_id | object | ID of the reported product |
| campaign_id | object | ID of the reported campaign |
| business_id | object | ID of the reported business |
| profile_id | string | ID of the reported profile (UUID) |
| active_profile_id | string | Active profile ID of the reporter |
| ch_id | object | Ignored. The report's channel is derived from the reported content. |
| channel_id | string | Ignored. The report's channel is derived from the reported content. |
Response
201. The payload in data is not described in the spec yet.
Update report status (Admin/Moderator)
PATCH/reports/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path | |
| x-admin-key | string, header |
Request body application/json
| Field | Type | Description |
|---|---|---|
| statusrequired | number | New status id (report_status.id) Minimum 1. |
| title | string | Audit trail title for the status change |
| description | string | Audit trail description for the status change |
Response
200. The payload in data is not described in the spec yet.
Get all reports submitted by the active profile
GET/reports/my
Needs a signed-in user (Bearer token or access_token cookie).
Response
200. The payload in data is not described in the spec yet.
Get all reporting reasons
GET/reports/reasons
Needs a signed-in user (Bearer token or access_token cookie).
Response
200. The payload in data is not described in the spec yet.