Modbot Docs
APIAPI referenceSettings

Update flag rules

PUT/api/settings/flag-rules

Change 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.

AuthorizationBearer <token>

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    }  ]}

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.