ContactAttemptRequest
ContactAttemptRequest data model
Properties
| Property | Type | Required | Description |
|---|---|---|---|
league_id | string | β Yes | League ID |
method | string | β Yes | Contact method (email, phone, meeting) |
outcome | string | β Yes | Outcome of contact attempt |
notes | string | β No | Additional notes |
Example
{
"league_id": "example",
"method": "example",
"outcome": "example",
"notes": "example"
}Used In
Code Examples
TypeScript
interface ContactAttemptRequest {
league_id: string;
method: string;
outcome: string;
notes?: string;
}
// Usage example
const data: ContactAttemptRequest = {
"league_id": "example",
"method": "example",
"outcome": "example",
"notes": "example"
};Python
from data_layer.schemas import ContactAttemptRequest
# Create instance
data = ContactAttemptRequest(
# 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 '{ "league_id": "example", "method": "example", "outcome": "example", "notes": "example" }'Validation Rules
Required Fields: league_id, method, outcome
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.