This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Checks the submitted content for any conditions that might trigger a rule, and then returns actions to take if the rule is triggered.
You can only call this method when authenticated as a Wix app or Wix user identity.
Namespace value.
Content to check.
Rule violation details.
curl -X POST https://www.wixapis.com/moderation/v1/rules/check \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Authorization: <AUTH>' \
-d ''{
"namespace": "reviews/f0f2e34e-a407-41bd-b8b0-d11a90b226de",
"content": {
"plainText": "Great product!",
"attributes": [
{ "name": "rating", "value": "2" }
]
}
}'
{
"violations": [
{
"ruleId": "5aad8c1c-916a-44d7-b655-0c3328dfb9b3",
"action": "NEEDS_MANUAL_APPROVAL"
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.