Automatically grade all pending exam attempts for a specific exam. This is useful after an exam period ends to process all student submissions at once. Structured questions are auto-graded, and AI is used for unstructured questions.
POST
/api/v1/exam/{id}/grade-all
curl \
--request POST 'https://api.echoplain.social/api/v1/exam/123e4567-e89b-12d3-a456-426614174000/grade-all'
Response examples (200)
{
"errors": 0,
"examId": "123e4567-e89b-12d3-a456-426614174000",
"message": "Batch grading completed",
"processed": 25,
"autoGraded": 20,
"totalFound": 25,
"completedAt": "2025-11-20T15:00:00Z",
"needsManualReview": 5
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}