# Grade all submitted assignment submissions (lecturer/admin) **POST /api/v1/assignment/{id}/grade-all** Batch grade all pending submissions for an assignment using AI analysis where applicable. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the assignment ## Responses ### 200 All submissions graded successfully ### 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 Assignment not found [Powered by Bump.sh](https://bump.sh)