Account Owner, Account Administrators, Department Administrators or custom roles that allow to grade assignments.
Header | Description |
|---|---|
| Authorization (required) | Access token. You can obtain a token by making a request. |
| Parameter | Description |
| assignmentAttemptGrades (required) | An array containing information about the attempts grade. |
| attemptId (required) | The attempt ID. |
| score (required) | Points from 1 to 100 |
| comment (optional) | Comment. |
Code | Text | Description |
|---|---|---|
| 201 | Successful operation | The request has been successfully processed. |
| 400 | Bad Request | A request error. |
| 401 | Unauthorized | An authorization error. |
| 403 | Permission Denied | The user doesn't have enough permissions to user results. |
POST/assignments/attempts/grade https/1.1
Host: api-learn.ispringlearn.com
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE
<?xml version="1.0" encoding="UTF-8"?>
<request>
<assignmentAttemptGrades>
<attemptGrade>
<attemptId>b825d996-2da0-11ec-9c36-0242ac150037</attemptId>
<score>55</score>
<comment>Comment 1</comment>
</attemptGrade>
<attemptGrade>
<attemptId>cb48025e-2db1-11ec-a60f-0242ac150037</attemptId>
<score>75</score>
<comment>Correct</comment>
</attemptGrade>
</assignmentAttemptGrades>
</request> |
https/1.1 201 Successful operation Connection: close |