StatsHub Docs
APIEndpoint referenceDashboard

/dashboard/bot/bot-toggle

Flips whether the Telegram bot covers a competition.

PUT
/api/dashboard/bot/bot-toggle

Flips whether the Telegram bot covers a competition.

The replacement requires a production superadmin; legacy allowed anonymous callers to turn bot coverage on or off.

The toggle is read-then-write with no locking, so two concurrent requests can both read the same value and the second write wins. That races in the original too.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Query Parameters

tournamentId?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/dashboard/bot/bot-toggle"
{  "data": {    "property1": null,    "property2": null  },  "message": "string"}