POST

Check Content


Developer Preview

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.

Authentication

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

Permissions
Manage Moderation Rules
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/moderation/v1/rules/check

Body Params
namespacestringmaxLength 120

Namespace value.


contentContent

Content to check.

Response Object
violationsArray <Violation>

Rule violation details.

Request
cURL
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" } ] } }'
Response
JSON
{ "violations": [ { "ruleId": "5aad8c1c-916a-44d7-b655-0c3328dfb9b3", "action": "NEEDS_MANUAL_APPROVAL" } ] }
Errors

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

Did this help?