LeagueScorecardResponse
Response with league scorecard data
Properties
| Property | Type | Required | Description |
|---|---|---|---|
status | string | β Yes | Status: 'success' or 'error' |
scorecard | object | β No | Calculated scorecard |
tier_classification | object | β No | League tier (1.1-5.1) |
default_interest_level | object | β No | Recommended interest level (0.5-2.0) |
error | object | β No | Error message if status is 'error' |
Example
{
"status": "example",
"scorecard": {},
"tier_classification": {},
"default_interest_level": {},
"error": {}
}Used In
Code Examples
TypeScript
interface LeagueScorecardResponse {
status: string;
scorecard?: any;
tier_classification?: any;
default_interest_level?: any;
error?: any;
}
// Usage example
const data: LeagueScorecardResponse = {
"status": "example",
"scorecard": {},
"tier_classification": {},
"default_interest_level": {},
"error": {}
};Python
from data_layer.schemas import LeagueScorecardResponse
# Create instance
data = LeagueScorecardResponse(
# Add your field values here
)cURL
curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "status": "example", "scorecard": {}, "tier_classification": {}, "default_interest_level": {}, "error": {} }'Validation Rules
Required Fields: status
Additional Information
- Type: object
- Source: Generated from Pydantic models in
data_layer/schemas/ - Auto-validated: All fields are validated by FastAPI
This documentation is auto-generated from the OpenAPI specification.