curl --request POST \
--url https://api.example.com/api/assessments/save \
--header 'Content-Type: application/json' \
--data '
{
"chapter_name": "<string>",
"bloom_factors": {},
"content_json": {}
}
'{
"status": "<string>",
"id": 123
}curl --request POST \
--url https://api.example.com/api/assessments/save \
--header 'Content-Type: application/json' \
--data '
{
"chapter_name": "<string>",
"bloom_factors": {},
"content_json": {}
}
'{
"status": "<string>",
"id": 123
}Authorization: Bearer <your_access_token>
{
"remember": 5,
"understand": 3,
"apply": 4,
"analyze": 3,
"evaluate": 2,
"create": 3
}
result object from the Job Status endpoint.Contains the mcqs array and any other generated content."saved" when successfully persisted to database.curl -X POST "http://localhost:8000/api/assessments/save" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"chapter_name": "Chapter 3: Photosynthesis",
"bloom_factors": {
"remember": 5,
"understand": 3,
"apply": 4,
"analyze": 3,
"evaluate": 2,
"create": 3
},
"content_json": {
"mcqs": [
{
"question": "What is the primary function of chlorophyll?",
"options": ["Absorb light", "Store glucose", "Release oxygen", "Transport water"],
"correct_answer": "Absorb light",
"bloom_level": "remember",
"explanation": "Chlorophyll captures light energy from the sun."
}
]
}
}'
{
"status": "saved",
"id": 42
}
{
"detail": "Not authenticated"
}
{
"detail": [
{
"loc": ["body", "chapter_name"],
"msg": "field required",
"type": "value_error.missing"
}
]
}
created_at) for trackingcontent_json field accepts any valid JSON structure, making it flexible for different assessment formats