...
Account Owner, Account Administrators, Department Administrators or custom roles that allow to grade assignments.
Request Parameters
| Parameter | Type | Description |
|---|---|---|
token (required) | string | Access token. You can obtain a token by making a request. |
assignmentId (required) | string | The assignment ID. |
userIds (optional) | array | The IDs of users whose attempts you want to retrieve. |
Return Values
Parameter | Type | Description |
|---|---|---|
attempts | AssignmentAttempt[] | An array with attempts. |
AssignmentAttempt
Parameter | Type | Description |
|---|---|---|
attemptId | string | The attempt ID. |
enrollmentId | string | The enrollment ID. |
userId | string | The user ID who made the attempt |
comment | string | Comment. |
attachments (optional) | AssignmentAttemptAttachment[] | Attachments for the attempt. |
AssignmentAttemptAttachment
Parameter | Type | Description |
|---|---|---|
fileName | string | The name of the file. |
fileSize | integer | File size in bytes. |
url | string | Url to download file. |
Possible Errors
Error | Description |
InvalidArgumentException | Invalid request. |
Permission denied | The user doesn't have permission to handle the request. |
Sample Request
| Code Block | ||
|---|---|---|
| ||
SoapAction: "https://%HOST%/soap/2.0/listAssignmentAttempts"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://ispringlearn.com/go/services/api/soap">
<soapenv:Header/>
<soapenv:Body>
<soap:ListAssignmentAttemptsRequest>
<soap:credentials>
<soap:token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</soap:token>
</soap:credentials>
<soap:assignmentId>f63d54e2-22ac-11ec-aca4-0242ac140038</soap:assignmentId>
<soap:userIds>
<soap:id>62927f9e-871e-11eb-b8cf-0242ac1a0028</soap:id>
</soap:userIds>
</soap:ListAssignmentAttemptsRequest>
</soapenv:Body>
</soapenv:Envelope>
|
...