Get Assignment Details
Returns one learner's assignment submission: uploaded files, comments, marks, tutor feedback, late-submission status and AI grading results.
GET
/assignment/pasttest/{attemptId}Get Assignment Details
curl --request GET \
--url 'https://<your-api-host>/nuSource/api/v1/assignment/pasttest/{attemptId}' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>'{
"code": 200,
"message": "success",
"exercise": {
"learner_name": "jkhjghghjf",
"submission_date": 1784868269,
"attempt_id": 3059,
"exercise_id": 1038,
"user_attempts": 4,
"user_highest_mark": 0,
"user_best_time": 0,
"passed_earned": 0,
"perfected_earned": 0,
"speedrun_earned": 0,
"hardworker_earned": 0,
"perfectionist_earned": 0,
"mark": 0,
"evaluation_time": 1784868269,
"user_test_time": 0,
"curr_speedrun": 0,
"curr_hardworker": 0,
"curr_perfectionist": 0,
"is_finalized": 0,
"is_late_submission": 0,
"student_comments": "<p><br></p>\n",
"faculty_comments": "",
"class_id": 7279,
"master_batch_id": 4891,
"user_id": 1,
"grade_range": null,
"ai_evaluation_status": 0,
"ai_evaluated_at": null,
"ai_evaluation_url": null,
"ai_evaluation_json": null,
"enable_ai_evaluation": 0,
"is_woolf_accredited": 0,
"file_details": [
{
"name": "2074329-Assignment_1_Sanskrit_Varnamala-_Lali_Anil.pdf",
"file_path": "https://d15g8b7hr8be7w.cloudfront.net/User(168516)/Course(878)/Section(4939)/Exercise(1038)/Attempt(3059)/126599-2074329-Assignment_1_Sanskrit_Varnamala-_Lali_Anil.pdf?Expires=1817889742&Signature=KkRp59s~wZZqT0sh7i5idn~UjQEqY5FFB772LWsMrqaTH0DEXFmXy7nE5E9wKKszQHPpG7fqhmCBRw4vvfg0rJXyzQcVJlYL6b6Y40Ya2~k9Gza07819-yoDz6g9pc8HXWsNifIn-fxD5oJTABP887SN6OCwXG7yhgogbNDqk0WEhcf-bMXPmzqlcm-4PYt~4BDfl2mxIekXwluMJXrc6MwfPymJvaPXgrktUkpv6eH-yjIXuUrKvhtsk0zoLhJDMIijP6mWzh7ljKbibXF1fkbfTF1SQp1dHxtoh~AjOQPKrtNDkv~MQfkejU1ZiK1CXIzNziNHnJKTdlVVTLMW5A__&Key-Pair-Id=APKAIIFZDCEANAVU2VTA"
}
],
"tutor_file_details": [],
"exercise_name": "My Assignment Programming",
"is_psycological": 0,
"sound_play_times": null,
"max_marks": 44,
"is_assignment": 1,
"exam_type": 2,
"instructions": null,
"sound_url": "",
"learner_id": 168516,
"woolf_resource_id": null,
"exercise_file_details": []
}
}Access: Any signed-in member of the organization. Learners can only read their own attempts; everyone else can read attempts in batches of their organizations.
Path parameters
The attempt (submission) ID.
Response
codeinteger
Example:
200messagestring
Example:
successexerciseobject
Show child attributesHide child attributes
exercise.learner_namestring
Example:
jkhjghghjfexercise.attempt_idinteger
Example:
3059exercise.exercise_idinteger
Example:
1038exercise.user_highest_markinteger
Example:
0exercise.user_best_timeinteger
Example:
0exercise.passed_earnedinteger
Example:
0exercise.perfected_earnedinteger
Example:
0exercise.speedrun_earnedinteger
Example:
0exercise.hardworker_earnedinteger
Example:
0Example:
0exercise.markinteger
Example:
0exercise.evaluation_timeinteger
Example:
1784868269exercise.user_test_timeinteger
Example:
0exercise.curr_speedruninteger
Example:
0exercise.curr_hardworkerinteger
Example:
0exercise.curr_perfectionistinteger
Example:
0exercise.is_late_submissioninteger
Example:
0Example:
<p><br></p>
HTML
exercise.class_idinteger
Example:
7279exercise.master_batch_idinteger
Example:
4891exercise.user_idinteger
Example:
1Example:
0The AI report, when finished
Example:
0exercise.is_woolf_accreditedinteger
Example:
0exercise.file_detailsobject[]
Files the learner uploaded, with temporary download links
Show child attributesHide child attributes
Example:
2074329-Assignment_1_Sanskrit_Varnamala-_Lali_Anil.pdfFiles the tutor attached
exercise.exercise_namestring
Example:
My Assignment Programmingexercise.is_psycologicalinteger
Example:
0exercise.max_marksinteger
Example:
44exercise.exam_typeinteger
Example:
2exercise.sound_urlstring
exercise.learner_idinteger
Example:
168516Files attached to the assignment itself
Notes: user_id in the response is the caller's own ID, not the learner's; use learner_id. File links expire. Error "Attempt not found. Please try again." when the attempt doesn't exist or you can't see it. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.