EmailCandidateRequest
EmailCandidateRequest data model
Properties
| Property | Type | Required | Description |
|---|---|---|---|
sender | string | β Yes | Sender email address |
subject | string | β Yes | Email subject |
body | string | β Yes | Email body content |
timestamp | object | β No | Email timestamp |
Example
{
"sender": "example",
"subject": "example",
"body": "example",
"timestamp": {}
}Used In
Code Examples
TypeScript
interface EmailCandidateRequest {
sender: string;
subject: string;
body: string;
timestamp?: any;
}
// Usage example
const data: EmailCandidateRequest = {
"sender": "example",
"subject": "example",
"body": "example",
"timestamp": {}
};Python
from data_layer.schemas import EmailCandidateRequest
# Create instance
data = EmailCandidateRequest(
# 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 '{ "sender": "example", "subject": "example", "body": "example", "timestamp": {} }'Validation Rules
Required Fields: sender, subject, body
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.