APIEndpoint referenceDashboard
/dashboard/leagues/update
Only booleans that are actually present are written, so a partial body leaves the rest alone.
Only booleans that are actually present are written, so a partial body leaves the rest alone. The row is read back through the same join the listing uses, so the client can drop the response straight into its table.
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
application/json
curl -X PATCH "https://example.com/api/dashboard/leagues/update" \ -H "Content-Type: application/json" \ -d '{ "ai_analysis_allowed": true, "heatmapLoad": true, "id": 0, "isFavorite": true, "predictlineup_allowed": true, "shotmapLoad": true, "shouldShow": true }'{ "ai_analysis_allowed": true, "country": "string", "heatmapLoad": true, "id": 0, "isFavorite": true, "name": "string", "predictlineup_allowed": true, "shotmapLoad": true, "shouldShow": true, "slug": "string", "uniqueTournamentId": 0}