Grade an assignment submission.
Grades a learner's assignment submission with a score and feedback, or asks for a resubmission. Sending score sets submissionStatus to 3 (Graded).
Endpoint
put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/session/{sessionId}/assignmentSubmissions/{assignmentSubmissionId}.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the assignment lesson (sessionId).
ID of the learner submission.
Request Body
application/jsonGrade and other changes; send only the keys to change.
Hide Sub-Attributes
Score from 0 to the total points of the assignment. Sets submissionStatus to 3 (Graded).
Trainer feedback for the learner. Supports rich text.
Status to set. Allowed: 3=Graded, 2=Ask the learner to resubmit.
New submission deadline for this learner, in epoch milliseconds.
Number of submissions this learner may make (0-10).
curl --request PUT \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/session/{sessionId}/assignmentSubmissions/{assignmentSubmissionId}.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"assignmentSubmission":{"score":90,"feedback":"<p>Great work. Watch the edge cases.</p>"}}' {
"assignmentSubmission": {
"score": 90,
"feedback": "<p>Great work. Watch the edge cases.</p>"
}
}
{
"assignmentSubmission": {
"submissionStatus": 2,
"maxAllowedSubmissions": 2,
"feedback": "<p>Please add comments to your code.</p>"
}
}
Response Parameters
The submission with its latest status, score and feedback.
Hide Sub-Attributes
ID of the submission.
Same as assignmentSubmissionId.
ID of the assignment lesson (sessionId).
ID of the course that holds the assignment.
User ID of the learner who submitted.
Status of the submission. Allowed: 0=In progress, 1=Submitted, 2=Resubmission requested, 3=Graded, 4=Resubmission in progress.
Score given by the trainer. Absent until graded.
Score as a percentage of totalPoints.
Total points of the assignment.
Trainer feedback. Supports rich text.
true when the submission is still valid for grading.
Number of submissions the learner has made.
Number of submissions the learner may make.
true when resubmission is allowed for the assignment.
Maximum number of resubmissions set on the assignment.
Time of the latest submission in epoch milliseconds.
Time of the last change in epoch milliseconds.
Files the learner submitted.
Hide Sub-Attributes
Show Sub-Attributes
ID of the assignment submission.
ID of the material.
Type of material.
URL of the material.
Kind of material.
File extension, for example pdf.
File size in bytes.
Status of the material.
Category of the material.
Error details.
Hide Sub-Attributes
Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.
Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.
Error message.
Possible Error Codes
| HTTP Code | Error Code | Description |
|---|---|---|
| 500 | ST_79 | INVALID_SESSION - The sessionId does not match a session in this academy. Pass a valid sessionId. Do not retry unchanged. |
| ST_401 | SESSION_DELETED - The session was deleted. Use a session that is not deleted. Do not retry unchanged. | |
| ST_102 | UNAUTHORISED_ACCESS - The user is not an academy owner or admin, a trainer of the assignment, or a course admin or trainer. Call with one of these roles; do not retry unchanged. |
{
"assignmentSubmission": {
"assignmentSubmissionId": "3000000000100",
"id": "3000000000100",
"sessionId": "3000000000048",
"courseId": "3000000000022",
"zuid": "51456950",
"submissionStatus": "3",
"score": "90.0",
"percentage": "90.0",
"totalPoints": "100",
"feedback": "<p>Great work. Watch the edge cases.</p>",
"attemptsCount": "1",
"maxAllowedSubmissions": "1",
"submittedDate": "1782727600000",
"lastUpdatedTime": "1782727715513"
},
"materials": []
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.Rate Limits
Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.