Run rule tests
POST
/api/settings/automod/rules/{kind}/{id}/tests/runCheck every sample against the rule as it stands now. AI topics cost a real request.
Needs the ManageSettings permission.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
kind*string
id*string
Format
uuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/settings/automod/rules/string/497f6eca-6276-4993-bfeb-53cbbbba6f08/tests/run"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "ranAt": "2019-08-24T14:15:22Z", "model": null, "ruleVersion": 0, "samples": 0, "shouldFlagCount": 0, "caught": 0, "missed": 0, "shouldNotFlagCount": 0, "wronglyFlagged": 0, "aiSkipped": null, "ranBy": null, "results": [ { "sampleId": "5c4a81f0-8df5-49c5-ae5b-8065332edd7d", "text": "string", "shouldFlag": true, "note": null, "target": "string", "flagged": true, "term": null, "matched": null, "reason": null } ]}