Docs home

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
attempt_idintegerrequired
The attempt (submission) ID.
Response200application/json
codeinteger
Example: 200
messagestring
Example: success
exerciseobject
Show child attributesHide child attributes
Example: jkhjghghjf
Unix timestamp
Example: 1784868269
Example: 3059
Example: 1038
Attempts taken
Example: 4
Example: 0
Example: 0
Example: 0
Example: 0
Example: 0
Example: 1784868269
Example: 0
Example: 0
Example: 0
1 once graded
Example: 0
Example: <p><br></p>
Example: 7279
Example: 4891
Example: 1
The AI report, when finished
Files the learner uploaded, with temporary download links
Show child attributesHide child attributes
Example: 2074329-Assignment_1_Sanskrit_Varnamala-_Lali_Anil.pdf
Files the tutor attached
Example: My Assignment Programming
Example: 0
Example: 44
0 exercise, 1 assignment, 2 programming assignment
Example: 1
Example: 2
Example: 168516
Files 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.

Updated yesterday

Ask AI