POST

Count Reports By Reason Types


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Counts reports by reason types.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Reports
Read Reports
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/reports/v2/reports/reason-types/count

Body Params
entityNamestringRequiredminLength 1maxLength 300

Reported entity name. For example, comment.


entityIdstringRequiredminLength 1maxLength 300

ID of the reported entity.

Response Object
reasonTypeCountArray <ReasonTypeCount>maxItems 100

List of reports grouped by the reason type.

Count Reports By Reason Types
Request
cURL
curl -X POST \ https://www.wixapis.com/reports/v2/reports/reason-types/count \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: <AUTH>' \ -d '{ "entityName": "comment", "entityId": "50353fbc-b265-4f03-888f-a53aa272758d" }'
Response
JSON
{ "reasonTypeCount": [ { "reasonType": "DRUGS", "count": 2 }, { "reasonType": "UNAUTHORIZED_SALES", "count": 8 } ] }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?