Grade all submitted CAT attempts for a CAT (lecturer/admin)

POST /api/v1/cats/{id}/grade-all

Path parameters

  • id string Required

    CAT ID to grade

Responses

  • 200 application/json

    Batch grading summary

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 403

    Insufficient permissions - requires ADMIN or LECTURER role

  • 404

    CAT not found

POST /api/v1/cats/{id}/grade-all
curl \
 --request POST 'http://localhost:3500/api/v1/cats/123e4567-e89b-12d3-a456-426614174000/grade-all'
Response examples (200)
{
  "catId": "...",
  "errors": 0,
  "message": "Batch grading completed",
  "processed": 5,
  "autoGraded": 3,
  "totalFound": 5,
  "needsManual": 2
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}