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.
You can only call this method when authenticated as a Wix app or Wix user identity.
Reported entity name. For example, comment
.
ID of the reported entity.
List of reports grouped by the reason type.
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"
}'
{
"reasonTypeCount": [
{
"reasonType": "DRUGS",
"count": 2
},
{
"reasonType": "UNAUTHORIZED_SALES",
"count": 8
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.