StatsHub Docs
APIEndpoint referenceLive foul card alerts

/live-foul-card-alerts

Upserts, so a user who has never opened the filters keeps the all-on defaults without a row existing until they change something.

PATCH
/api/live-foul-card-alerts

Upserts, so a user who has never opened the filters keeps the all-on defaults without a row existing until they change something.

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 PATCH "https://example.com/api/live-foul-card-alerts" \  -H "Content-Type: application/json" \  -d '{    "mutedUniqueTournamentIds": [      0    ],    "notify2Fouls": true,    "notify3Fouls": true,    "notify4Fouls": true,    "notify5PlusFouls": true,    "notifyYellowCards": true  }'
{  "success": true}