Request: POST /assignments/attempts/grade

Permissions to Run the Request

Account OwnerAccount AdministratorsDepartment Administrators or custom roles that allow to grade assignments.

Request Headers

Header

Description

Authorization (required)Access token. You can obtain a token by making a request.
ParameterDescription
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.

Response Codes

Code

Text

Description

201Successful operationThe request has been successfully processed. 
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission DeniedThe user doesn't have enough permissions to user results.

Sample Request

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>

Sample Response

https/1.1 201 Successful operation
Connection: close
  • No labels