TermAdjustmentResponse
Response from term adjustment
Properties
| Property | Type | Required | Description |
|---|---|---|---|
status | string | β Yes | Status: 'success' or 'error' |
adjusted_terms | object | β No | Adjusted contract terms |
terms | object | β No | Formatted terms (for backward compatibility) |
tier | object | β No | Tier after adjustment |
aggressiveness_level | object | β No | Applied aggressiveness level |
valuation | object | β No | Updated valuation data |
league_profile | object | β No | League profile data |
error | object | β No | Error message if status is 'error' |
Example
{
"status": "example",
"adjusted_terms": {},
"terms": {},
"tier": {},
"aggressiveness_level": {},
"valuation": {},
"league_profile": {},
"error": {}
}Used In
Code Examples
TypeScript
interface TermAdjustmentResponse {
status: string;
adjusted_terms?: any;
terms?: any;
tier?: any;
aggressiveness_level?: any;
valuation?: any;
league_profile?: any;
error?: any;
}
// Usage example
const data: TermAdjustmentResponse = {
"status": "example",
"adjusted_terms": {},
"terms": {},
"tier": {},
"aggressiveness_level": {},
"valuation": {},
"league_profile": {},
"error": {}
};Python
from data_layer.schemas import TermAdjustmentResponse
# Create instance
data = TermAdjustmentResponse(
# 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", "adjusted_terms": {}, "terms": {}, "tier": {}, "aggressiveness_level": {}, "valuation": {}, "league_profile": {}, "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.