/dashboard/bot/bot-toggle
Flips whether the Telegram bot covers a competition.
Flips whether the Telegram bot covers a competition.
SECURITY: this endpoint has no authentication, in the original or here. Anyone who can reach it can turn a competition's bot coverage on or off. The port keeps that because adding a check would reject the dashboard client if it does not send credentials today, and because the endpoint is already live and unauthenticated — closing it is a product decision with a client change attached, not something to do silently inside a port. Raised separately.
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.
Query Parameters
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/v2/dashboard/bot/bot-toggle"{ "$schema": "https://example.com/schemas/DashboardBotToggleOKBody.json", "data": { "property1": null, "property2": null }, "message": "string"}
