Skip to main content

CreateUnansweredAssessmentAttempt

Creates an assessment attempt for unanswered questions. This is used when user skips questions during an assessment attempt and decides to review the unanswered questions. The results of this mutation can be affected by providing an authToken header to set a user for the operation.

CreateUnansweredAssessmentAttempt(
topicId: ID!
courseId: ID!
completedAssessmentAttemptId: ID!
): AssessmentAttempt!

Directives

authAccess

This requires the current user to be in MANAGER role.

Arguments

CreateUnansweredAssessmentAttempt.topicId ● ID! non-null scalar

The ID of the topic.

CreateUnansweredAssessmentAttempt.courseId ● ID! non-null scalar

The ID of the course.

CreateUnansweredAssessmentAttempt.completedAssessmentAttemptId ● ID! non-null scalar

The ID of the last completed assessment attempt.

Type

AssessmentAttempt object

Examples

Run in Postman

Query:

CreateUnansweredAssessmentAttempt(
$topicId: ID!,
$courseId: ID!,
$completedAssessmentAttemptId: ID!
) {
CreateUnansweredAssessmentAttempt(
topicId: $topicId,
courseId: $courseId,
completedAssessmentAttemptId: $completedAssessmentAttemptId
) {
id
assessment {
...AssessmentFragment
}
answers {
...AssessmentAnswerFragment
}
course {
...CourseFragment
}
courseId
user {
...UserFragment
}
createdAt
updatedAt
timeElapsedInSeconds
status
grade
originalGrade
passed
assignmentSubmissionId
questions {
...QuizQuestionFragment
}
topicType
forgiven
topic {
...TopicFragment
}
topicId
correctQuestionsCount
answeredQuestionsCount
unansweredQuestionsCount
questionsWithChoicesCount
poolLabelByQuestionId
linkedWorkbook
adminUpdatedGrade
}
}

Variables:

{
"topicId": "58ccb96c-8e90-4464-86e0-f284442981df",
"courseId": "58ccb96c-8e90-4464-86e0-f284442981df",
"completedAssessmentAttemptId": "58ccb96c-8e90-4464-86e0-f284442981df"
}

Response:

{
"data": {
"CreateUnansweredAssessmentAttempt": {
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"assessment": "Assessment",
"answers": [
"AssessmentAnswer"
],
"course": "course-1",
"courseId": "course-1",
"user": "User",
"createdAt": "2023-12-20T16:58:58.782Z",
"updatedAt": "2023-12-20T16:58:58.782Z",
"timeElapsedInSeconds": 678,
"status": "started",
"grade": 678,
"originalGrade": 678,
"passed": true,
"assignmentSubmissionId": "58ccb96c-8e90-4464-86e0-f284442981df",
"questions": [
"QuizQuestion"
],
"topicType": "ad",
"forgiven": true,
"topic": "Topic",
"topicId": "58ccb96c-8e90-4464-86e0-f284442981df",
"correctQuestionsCount": 678,
"answeredQuestionsCount": 678,
"unansweredQuestionsCount": 678,
"questionsWithChoicesCount": 678,
"poolLabelByQuestionId": "{}",
"linkedWorkbook": "58ccb96c-8e90-4464-86e0-f284442981df",
"adminUpdatedGrade": false
}
}
}