List the assignment submissions of a course.

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Returns one row per learner and assignment in a course, with status, score and files. Default filter=3 (turned in); results are paginated with si and limit.

Endpoint

get https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/assignmentSubmissions.json

OAuth Scope

TrainerCentral.sessionapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Query Parameters

siinteger(Optional)

Start index (0-based). Default 0.

Example
0
limitinteger(Optional)

Number of rows to return. Default 10.

Example
10
filterinteger(Optional)

Submission status. Allowed: 0=All started, 1=Yet to start, 2=Yet to turn in, 3=Turned in, 4=Graded. Default 3.

Example
3
Minimum Value :00Copied!
Maximum Value :44Copied!
searchTextstring(Optional)

Text to search in the learner name and email.

Example
jane
courseIdlong(Optional)

ID of the course.

Example
3000000000022
assignmentIdlong(Optional)

Lesson ID (sessionId) of one assignment. Required when filterTypeAll is false.

Example
3000000000061
filterTypeAllboolean(Optional)

true returns every assignment; false returns only assignmentId. Default: every assignment.

Example
false
sortinteger(Optional)

Sort field. Allowed: 1=Submitted date. Default: learner first name.

Example
1
sortBystring(Optional)

Sort direction. Allowed: asc=Ascending, desc=Descending. Default asc.

Example
desc

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://trainercentral.zoho.com/tc/api/v1/trainer/assignmentSubmissions.json?si=0&limit=10&filter=3&searchText=jane&courseId=3000000000022&assignmentId=3000000000061&filterTypeAll=false&sort=1&sortBy=desc' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

assignmentSubmissionsJSON Array

Rows on this page, one per learner and assignment.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
assignmentSubmissionIdstring

ID of the submission; courseMembersId_sessionId for learners who have not started.

idstring

Same as assignmentSubmissionId.

sessionIdstring

Lesson ID (sessionId) of the assignment.

sessionstring

Same as sessionId.

assignmentNamestring

Name of the assignment lesson.

courseIdstring

ID of the course.

courseMembersIdstring

courseMemberId of the learner.

orgMemberIdstring

Academy member ID of the learner.

zuidstring

User ID (zuid) of the learner. Absent when the learner has not started.

firstNamestring

First name of the learner.

lastNamestring

Last name of the learner.

userNamestring

Full name of the learner.

emailstring

Email address of the learner.

submissionStatusstring

Submission status. Allowed: 0=In progress, 1=Submitted, 2=Resubmission requested, 3=Graded, 4=Resubmission in progress.

scorestring

Score given by the trainer.

percentagestring

Score as a percentage of totalPoints.

startDatestring

Start time in epoch milliseconds.

submittedDatestring

Submission time in epoch milliseconds.

extendedDeadlinestring

Extended deadline in epoch milliseconds.

lastUpdatedTimestring

Last update time in epoch milliseconds.

totalPointsstring

Maximum points of the assignment.

assignmentPointsstring

Same as totalPoints.

enableAssignmentResubmissionstring

true when resubmission is allowed.

assignmentReSubmissionLimitstring

Number of resubmissions allowed.

maxAllowedSubmissionsstring

Maximum number of submissions.

feedbackstring

Trainer feedback. Supports rich text.

isSubmissionValidstring

true when the learner can still submit.

sessionsJSON Array

Assignment lesson of each row, in the same order as assignmentSubmissions.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
sessionIdstring

Lesson ID (sessionId) of the assignment.

idstring

Same as sessionId.

namestring

Name of the assignment lesson.

materialsJSON Array

Files the learners submitted.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
assignmentSubmissionstring

ID of the assignment submission.

materialIdstring

ID of the material.

materialTypeinteger

Type of material.

linkAddressstring

URL of the material.

kindinteger

Kind of material.

extensionstring

File extension, for example pdf.

sizeinteger

File size in bytes.

statusinteger

Status of the material.

categorystring

Category of the material.

courseMembersJSON Array

Same rows as assignmentSubmissions.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
assignmentSubmissionIdstring

ID of the submission; courseMembersId_sessionId for learners who have not started.

idstring

Same as assignmentSubmissionId.

sessionIdstring

Lesson ID (sessionId) of the assignment.

sessionstring

Same as sessionId.

assignmentNamestring

Name of the assignment lesson.

courseIdstring

ID of the course.

courseMembersIdstring

courseMemberId of the learner.

orgMemberIdstring

Academy member ID of the learner.

zuidstring

User ID (zuid) of the learner. Absent when the learner has not started.

firstNamestring

First name of the learner.

lastNamestring

Last name of the learner.

userNamestring

Full name of the learner.

emailstring

Email address of the learner.

submissionStatusstring

Submission status. Allowed: 0=In progress, 1=Submitted, 2=Resubmission requested, 3=Graded, 4=Resubmission in progress.

scorestring

Score given by the trainer.

percentagestring

Score as a percentage of totalPoints.

startDatestring

Start time in epoch milliseconds.

submittedDatestring

Submission time in epoch milliseconds.

extendedDeadlinestring

Extended deadline in epoch milliseconds.

lastUpdatedTimestring

Last update time in epoch milliseconds.

totalPointsstring

Maximum points of the assignment.

assignmentPointsstring

Same as totalPoints.

enableAssignmentResubmissionstring

true when resubmission is allowed.

assignmentReSubmissionLimitstring

Number of resubmissions allowed.

maxAllowedSubmissionsstring

Maximum number of submissions.

feedbackstring

Trainer feedback. Supports rich text.

isSubmissionValidstring

true when the learner can still submit.

metaJSON Object

Counts for pagination.

Hide Sub-Attributes
assignmentSubmissionsCountinteger

Number of rows that match the filters, across all pages.

errorJSON Object

Error details.

Hide Sub-Attributes
codestring

Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.

codeStrstring

Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.

messagestring

Error message.

Possible Error Codes

HTTP CodeError CodeDescription
500ST_94

INVALID_COURSE - courseId is missing, not found or deleted. Pass a valid courseId. Do not retry unchanged.

ST_102

UNAUTHORISED_ACCESS - The user is not an academy owner, admin or trainer of this course. Do not retry with the same token.

Response Example

Turned-in submissions (trimmed).

200
200
400
500
Copied!
  {
    "assignmentSubmissions": [
      {
        "assignmentSubmissionId": "3000000000110",
        "id": "3000000000110",
        "sessionId": "3000000000061",
        "session": "3000000000061",
        "assignmentName": "OOP Assignment",
        "courseId": "3000000000022",
        "courseMembersId": "3000000000095",
        "orgMemberId": "3000000000004",
        "zuid": "51456992",
        "firstName": "Jane",
        "lastName": "Smith",
        "userName": "Jane Smith",
        "email": "jane.smith@example.com",
        "submissionStatus": "1",
        "startDate": "1782727000000",
        "submittedDate": "1782728000000",
        "totalPoints": "100",
        "enableAssignmentResubmission": "false"
      }
    ],
    "sessions": [
      {
        "id": "3000000000061",
        "sessionId": "3000000000061",
        "name": "OOP Assignment"
      }
    ],
    "materials": [],
    "courseMembers": [],
    "meta": {
      "assignmentSubmissionsCount": "1"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full