# Grade all submitted exam attempts in batch **POST /api/v1/exam/{id}/grade-all** 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. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the exam ## Responses ### 200 Batch grading completed with summary statistics ### 400 Default bad request error 400 response #### Body: application/json (object) - **message** (string) Response message - **error** (string) - **statusCode** (number) ### 403 Forbidden - Admin or Lecturer role required ### 404 Exam not found [Powered by Bump.sh](https://bump.sh)