Update flag rules
/api/settings/flag-rulesChange which rules make a person Flagged. warnsAtLeast is 1 to 99. liftedBansForDays is 1 to 3650, or null for a lifted ban to count always. With everyAutoModRule false, only the flags of the rules in autoModRules count. A watch on a person always counts and has no setting here.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/settings/flag-rules" \ -H "Content-Type: application/json" \ -d '{ "kicksAndBans": true, "warns": true, "warnsAtLeast": 0, "nuisance": true, "autoMod": true, "everyAutoModRule": true, "autoModRules": null }'{ "kicksAndBans": true, "liftedBansForDays": null, "warns": true, "warnsAtLeast": 0, "nuisance": true, "autoMod": true, "everyAutoModRule": true, "autoModRules": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "name": "string", "counts": true } ]}Get flag rules GET
The rules that make a person Flagged on the companion and the Live page. Needs the `ManageSettings` permission.
Get Cloud status GET
Whether this server reports to Modbot Cloud, and how the last report went. `reportOn` is the usage report switch; `disabled` is `MODBOT_CLOUD_DISABLED`, which stops the report whatever the switch says. Needs the `ManageSettings` permission.