is_marked flag is set to 1 and the awarded grade becomes visible to the student.
Endpoint
Required Role
Admin — you must authenticate with an admin-scoped Bearer token.Required Headers
| Header | Value |
|---|---|
Authorization | Bearer <admin-token> |
Accept | application/json |
Content-Type | application/json |
grade_id is the submission ID — it corresponds to the id field within the submissions array returned by the List Quizzes and Get Quiz endpoints. It is not the quiz’s own id.Path Parameters
The unique ID of the student submission you want to grade. Retrieve this value from the
id field inside the submissions array of any quiz response.Request Body
The grade you are awarding to the student for this submission. Must not exceed
total_grade.The maximum possible grade for this submission. This value is recorded alongside the awarded grade so students can see their score in context.
Example Request
Response
200 OK
422 Validation Error
Error Responses
| Status | Message | Cause |
|---|---|---|
403 | Unauthorized Access | The token provided does not belong to an admin account. |
404 | Not Found | No submission exists with the specified grade_id. |
422 | Invalid Data | The grade or total_grade field is missing from the request body. |

