StatsHub Docs
APIAPI v2V2 endpoint referenceAdmin

/admin/dashboard/bot/stats-rules

POST
/admin/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/problem+json

application/problem+json

application/problem+json

application/problem+json

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