Skip to main content

LoadAssessmentAttempts

The Load Assessment Attempts query returns all Assessment Attempts within the school. This query requires an authToken header to set a manager user for the operation.

LoadAssessmentAttempts(
startDate: Date
endDate: Date
courseId: ID
userId: ID
page: Int
perPage: Int
): AssessmentAttemptList

Directives

authAccess

This requires the current user to be in MANAGER role.

Arguments

LoadAssessmentAttempts.startDate ● Date scalar

Filters the returned results to the specified start date.

LoadAssessmentAttempts.endDate ● Date scalar

Filters the returned results to the specified end date.

LoadAssessmentAttempts.courseId ● ID scalar

LoadAssessmentAttempts.userId ● ID scalar

LoadAssessmentAttempts.page ● Int scalar

The page number to return within the collection.

LoadAssessmentAttempts.perPage ● Int scalar

The amount of items to be returned on the page.

Type

AssessmentAttemptList object

Examples

Run in Postman

Query:

LoadAssessmentAttempts(
$startDate: Date,
$endDate: Date,
$courseId: ID,
$userId: ID,
$page: Int,
$perPage: Int
) {
LoadAssessmentAttempts(
startDate: $startDate,
endDate: $endDate,
courseId: $courseId,
userId: $userId,
page: $page,
perPage: $perPage
) {
pageInfo {
...CursorPageInfoFragment
}
assessmentAttempts {
...AssessmentAttemptFragment
}
}
}

Variables:

{
"startDate": "2024-06-20T16:58:58.782Z",
"endDate": "2023-12-20T16:58:58.782Z",
"courseId": "58ccb96c-8e90-4464-86e0-f284442981df",
"userId": "58ccb96c-8e90-4464-86e0-f284442981df",
"page": 678,
"perPage": 678
}

Response:

{
"data": {
"LoadAssessmentAttempts": {
"pageInfo": "CursorPageInfo",
"assessmentAttempts": [
"AssessmentAttempt"
]
}
}
}