Update the settings of a course test.
Updates grading, negative marking, time limit, shuffling, retake and result-display settings of a course test. Only the keys you send are changed; the path formId is the test id, not the form UUID.
Endpoint
put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/session/{sessionId}/tests/{testUuid}.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the course lesson (sessionId) that holds the test.
Test id of the test (tests[].id), not the form UUID.
Request Body
application/jsonSettings to change; only the keys you send are changed.
Hide Sub-Attributes
true grades each attempt pass or fail; needed for the 3 and 4 values of the *AllowType keys.
Pass mark as a percentage of the total score (0-100).
true deducts marks for wrong answers.
How negativeMark applies. Allowed: 0=Points, 1=Percentage of the question score.
Marks or percent deducted per wrong answer (1-100).
true limits each attempt to duration minutes.
Time limit per attempt in minutes (1-600).
true shuffles the questions in each attempt.
Questions picked at random per attempt; at most the question count.
true shuffles the options of Choice questions.
true lets learners retake the test.
Retakes allowed after the first attempt.
Who may retake when grading is on. Allowed: 1=All learners, 3=Passed only, 4=Failed only.
Who sees the result. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees the score. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees their own answers. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees whether each answer was correct. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees the correct answers. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees the question feedback. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Message displayed to learners when they pass the assessment. Supports rich text.
Message displayed to learners when they fail the assessment. Supports rich text.
Message displayed when the assessment ends. Supports rich text.
true lets learners change a submitted answer during the attempt.
true shows feedback right after each answer.
curl --request PUT \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/session/21603000000354002/tests/8a0904c5-bd29-4a9f-9d03-b5fd2dbe880f.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"test":{"enableGrading":true,"gradingPercentage":50,"enableNegativeMark":true,"negativeMarkType":0,"negativeMark":1,"enableTimedTest":true,"duration":83,"enableShuffleQuestion":true,"shuffleLimit":3,"enableShuffleAnswerOption":true,"enableRetake":true,"attemptsCount":1,"allowRetakeAllowType":4,"testResultAllowType":1,"testScoreAllowType":1,"learnersAnswerAllowType":1,"correctOrIncorrectAllowType":1,"correctAnswerAllowType":1,"answerFeedbackAllowType":1,"passGradeMessage":"Congratulations! You have shown strong business fundamentals knowledge.","failGradeMessage":"Keep learning. Review business metrics, planning and financial statements, then try again."}}' {
"test": {
"enableGrading": true,
"gradingPercentage": 50,
"enableNegativeMark": true,
"negativeMarkType": 0,
"negativeMark": 1,
"enableTimedTest": true,
"duration": 83,
"enableShuffleQuestion": true,
"shuffleLimit": 3,
"enableShuffleAnswerOption": true,
"enableRetake": true,
"attemptsCount": 1,
"allowRetakeAllowType": 4,
"testResultAllowType": 1,
"testScoreAllowType": 1,
"learnersAnswerAllowType": 1,
"correctOrIncorrectAllowType": 1,
"correctAnswerAllowType": 1,
"answerFeedbackAllowType": 1,
"passGradeMessage": "Congratulations! You have shown strong business fundamentals knowledge.",
"failGradeMessage": "Keep learning. Review business metrics, planning and financial statements, then try again."
}
}
{
"test": {
"enableTimedTest": false,
"enableRetake": false
}
}
{
"test": {
"testResultAllowType": 1,
"learnersAnswerAllowType": 3,
"correctAnswerAllowType": 3
}
}
Response Parameters
The test with all its settings; same keys as tests[] in List Course Tests.
Hide Sub-Attributes
Test ID. Not the form UUID.
Test form ID (formUuid_sessionId).
Same as formId.
ID of the lesson that holds the test.
Same as sessionId.
Name of the test.
Test instructions. Supports rich text.
Number of questions.
true when grading is on.
true when retakes are allowed.
Number of retakes allowed after the first attempt.
Pass percentage.
true when the test has a time limit.
Time limit in minutes.
true when questions are shuffled.
true when answer options are shuffled.
true when negative marking is on.
Who sees the result. Allowed: 0=Default, 1=All, 2=No one, 3=Passed only, 4=Failed only.
Who sees the score. Allowed: 0=Default, 1=All, 2=No one, 3=Passed only, 4=Failed only.
Who can retake. Allowed: 1=All, 3=Passed only, 4=Failed only.
Who sees their answers. Allowed: 0=Default, 1=All, 2=No one, 3=Passed only, 4=Failed only.
Who sees the correct answers. Allowed: 0=Default, 1=All, 2=No one, 3=Passed only, 4=Failed only.
Who sees answer feedback. Allowed: 0=Default, 1=All, 2=No one, 3=Passed only, 4=Failed only.
Who sees whether each answer is correct. Allowed: 0=Default, 1=All, 2=No one, 3=Passed only, 4=Failed only.
true when learners can change answers after submitting.
true when feedback shows after each question.
Message displayed after submission. Supports rich text.
Message displayed to learners when they pass the assessment. Supports rich text.
Message displayed to learners when they fail the assessment. Supports rich text.
Grace time in seconds after the time limit.
Number of questions picked per attempt when shuffling.
Legacy flag.
Legacy flag.
Marks or percent deducted per wrong answer.
Allowed: 0=Points, 1=Percentage.
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 is not a lesson in this academy. Use tests[].sessionId from List Course Tests; do not retry unchanged. |
| ST_401 | SESSION_DELETED - The lesson (sessionId) is deleted. Use an existing lesson; do not retry unchanged. | |
| ST_102 | UNAUTHORISED_ACCESS - The user cannot edit this test. Use an academy owner, admin, course trainer or lesson owner; do not retry unchanged. | |
| ST_819 | TEST_FEATURE_UNAVAILABLE - The academy plan does not include graded tests. Upgrade the plan; do not retry until then. |
{
"test": {
"id": "8a0904c5-bd29-4a9f-9d03-b5fd2dbe880f",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"form": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"sessionId": "21603000000354002",
"session": "21603000000354002",
"name": "Business Fundamentals Quiz",
"description": "<p>Answer all questions.</p>",
"totalQuestions": "5",
"enableGrading": "true",
"gradingPercentage": "50",
"enableTimedTest": "true",
"duration": "83",
"graceTimeForEndTest": "10",
"enableNegativeMark": "true",
"negativeMark": "1",
"negativeMarkType": "0",
"enableShuffleQuestion": "true",
"shuffleLimit": "3",
"enableShuffleAnswerOption": "true",
"enableRetake": "true",
"attemptsCount": "1",
"allowRetakeAllowType": "4",
"testResultAllowType": "1",
"testScoreAllowType": "1",
"learnersAnswerAllowType": "1",
"correctOrIncorrectAllowType": "1",
"correctAnswerAllowType": "1",
"answerFeedbackAllowType": "1",
"enableShowResult": "true",
"enableShowCorrectAnswer": "true",
"allowLearnersToChangeAnswerOnceSubmitted": "true",
"showFeedbackForEachQuestionAfterAnswering": "false",
"customEndMessage": "",
"passGradeMessage": "Congratulations! You have shown strong business fundamentals knowledge.",
"failGradeMessage": "Keep learning. Review business metrics, planning and financial statements, then try again."
}
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.