AVAILABLE WITH BUSINESS SUBSCRIPTION

Request: GET /assignment/{assignment_id}/attempts/ungraded

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
userIds (optional)    

The IDs of users whose attempts you want to retrieve.

Response Parameters

Parameter

Description

response

An array containing a list of all attempts.

attemptId

The attempt ID.

enrollmentId

The enrollment ID.

userId

The user ID. 

comment

Comment.

attachments

An array with attachments for the attempt.

fileName

The name of the file.

fileSize

File size in bytes.

url

Url to download file.

Note:

Deleted attempts are not included in the list. You will see only attempts of users belonging to a department you manage.

Response Codes

Code

Text

Description

200Successful operationThe request has been successfully processed. 
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission DeniedThe user doesn't have enough permissions to retrieve a list of users.

Sample Request

GET/assignment/f63d54e2-22ac-11ec-aca4-0242ac140038/attempts/ungraded?userIds[]=62927f9e-871e-11eb-b8cf-0242ac1a0028 https/1.1

Host: api-learn.ispringlearn.com 
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE
XML

Sample Response

https/1.1 200 Successful operation
Connection: close
 
<?xml version="1.0" encoding="UTF-8"?>
<response>
    <attempt>
        <attemptId>2b70bd59-31a8-11ec-81f2-0242ac190004</attemptId>
        <enrollmentId>840869b4-22ae-11ec-9665-0242ac140038</enrollmentId>
        <userId>62927f9e-871e-11eb-b8cf-0242ac1a0028</userId>
        <comment>100</comment>
    </attempt>
    <attempt>
        <attemptId>2b70bdd9-31a8-11ec-81f2-0242ac190004</attemptId>
        <enrollmentId>0e1ce016-22b0-11ec-a4c6-0242ac140038</enrollmentId>
        <userId>62927f9e-871e-11eb-b8cf-0242ac1a0028</userId>
        <comment>Attempt 2 -  !Assignment - from the course</comment>
        <attachments>
            <attachment>
                <fileName>test.xlsx</fileName>
                <fileSize>4737</fileSize>
                <url>https://my.ispringlearn.com/proxy/learn-cnode/attachment/1-TCtyF-Fj8EX-zi1MH/1/14.xlsx/test.xlsx?pk=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdSI6InZpYXRjaGVzbGF2LXRhcmFzb3YtMSIsInV1IjoiZmQyNmMzMTQtODMxMS0xMWViLTk3OTgtMDI0MmFjMTMwMDI4IiwiY2siOiIxLVRDdHlGLUZqOEVYLXppMU1IIiwiYW0iOjIsImV0IjoxNjM1OTQ1MDE5fQ.YMYQbA5xBu8qGhF_OB65qS9vEMNnY1My-IogFxb42mI
                </url>
            </attachment>
        </attachments>
    </attempt>
</response>
XML