Endpoint
Required Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Accept | application/json |
Content-Type | application/json |
Path Parameters
The unique submission ID. Must be a numeric value.
Request Body
The numeric grade to assign to the submission. Must be an integer between
1 and 10 (inclusive).Optional written feedback for the student. Maximum 1000 characters.
Example Request
Response
200 OK
Returns a confirmation message and the updated SubmissionObject reflecting the saved grade.Validation Error Responses (422)
The API returns a422 status with field-level error details when request body validation fails. The examples below show the possible validation errors:
Missing rating:
Error Responses
| Status | Message | Cause |
|---|---|---|
401 | UnauthorizedRequest | Missing or invalid token, or the authenticated user does not have the Admin role. |
404 | PDF Homework not found | No submission exists with the given ID. |
422 | ValidationError | rating is missing, not an integer, or outside the 1–10 range; or comment exceeds 1000 characters. |

