Docs home

Get Batch Class Section Programming Assignments Submissions Details

Returns submissions for a programming assignment. Learners get all their own attempts; tutors and admins get each learner's latest submission.

GET/assignments/submissions
Get Batch Class Section Programming Assignments Submissions Details
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/assignments/submissions?assignment_id=<AssignmentId>'
{
  "code": 200,
  "message": "Success",
  "submissions": [
    {
      "submission_id": 90,
      "user_id": 49531,
      "assignment_id": 8,
      "submission_time": 1659949397,
      "is_submitted": 1,
      "marks": 0,
      "name": null,
      "username": null,
      "codejudge_evaluated": 2
    }
  ]
}

Access: Any signed-in user who has access to the assignment's course.

Query parameters
assignment_idintegerrequired
Assignment ID, from the batch curriculum.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Success
submissionsobject[]
Show child attributesHide child attributes
Example: 90
Example: 49531
Example: 8
Unix timestamp
Example: 1659949397
1 final submission
Example: 1
Example: 0
1 not yet evaluated, 2 evaluated
Example: 2

Notes: The tutor/admin view is not limited to one batch: it covers every learner who submitted, across batches of the course. Fails with "invalid.assignment.id" if the assignment does not exist or you have no access to its course. Rate limit: 30 requests per 1 minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI