StatsHub Docs
APIEndpoint referenceDashboard

/dashboard/bot/stats-rules

PUT
/api/dashboard/bot/stats-rules

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/dashboard/bot/stats-rules" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "id": 0  }'
{  "createdAt": "string",  "id": 0,  "isEnabled": true,  "statisticKey": "string",  "statisticsLabel": "string",  "updatedAt": "string"}