Add questions to a course test.
Adds up to 15 questions to a test in a course lesson. The path formId is the test's form UUID from List Course Tests.
Endpoint
post https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/session/{sessionId}/form/{formUuid}/fields.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the course lesson (sessionId) that holds the test.
Form UUID of the test (the part of tests[].formId before the underscore), not the test id.
Query Parameters
Form type. Allowed: 3=Test.
Request Body
application/jsonQuestions to add, 1-15 items.
Hide Sub-Attributes
Show Sub-Attributes
Question text. Supports rich text.
Question type. Allowed: 2=Choice, 7=True or false, 8=Fill in the blank, 16=Essay. Send the matching multipleChoice, fillInBlank or essay object.
Marks for a correct answer (1-50); 0 when not sent.
true when the learner must answer the question. Default false.
Options of a Choice or True or false question (fieldType 2, 7).
Show Sub-Attributes
Allowed: 0=Single answer, 1=Multiple answers (Choice only). Send 0 for True or false.
Answer options, 1-25 items (two for True or false).
Show Sub-Attributes
Show Sub-Attributes
Position of the option or blank, from 0.
Choice only. Content type of optionText. Allowed: 0=Text, 1=Image. Default 0.
Option text, accepted blank answer, or essay reference answer.
true marks a correct option (Choice, True or false). Default false.
Accepted answers of a Fill in the blank question (fieldType 8).
Show Sub-Attributes
Accepted answer of each blank, 1-25 items, in blank order.
Show Sub-Attributes
Show Sub-Attributes
Position of the option or blank, from 0.
Choice only. Content type of optionText. Allowed: 0=Text, 1=Image. Default 0.
Option text, accepted blank answer, or essay reference answer.
true marks a correct option (Choice, True or false). Default false.
Essay settings (fieldType 16); send at least an empty object.
Show Sub-Attributes
Optional reference answers for the evaluating trainer.
Show Sub-Attributes
Show Sub-Attributes
Position of the option or blank, from 0.
Choice only. Content type of optionText. Allowed: 0=Text, 1=Image. Default 0.
Option text, accepted blank answer, or essay reference answer.
true marks a correct option (Choice, True or false). Default false.
Fill in the blank only. true makes answers case sensitive. Default false.
Essay only. Maximum answer length (1-10000). Default 5000.
Essay only. Unit of textLength. Allowed: 0=Characters, 1=Words. Default 0.
true shows feedback to the learner. Default false.
Feedback texts; required when enableFeedback is true.
Show Sub-Attributes
Feedback mode. Allowed: 0=Same for any answer, 1=Correct and incorrect (dataList[0], dataList[1]), 2=Per option.
Feedback texts in the order type needs. Supports rich text.
curl --request POST \
--url 'https://trainercentral.zoho.com/tc/api/v1/trainer/session/21603000000354002/form/7305cb9e-3913-49d7-8cb9-eebd159f5281/fields.json?type=3' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"field":[{"label":"Which metric best measures recurring revenue growth for a SaaS business?","fieldType":2,"score":5,"isMandatory":true,"multipleChoice":{"selectionType":0,"fieldOptions":[{"orderIndex":0,"optionType":0,"optionText":"Customer acquisition cost (CAC)","correctAnswer":false},{"orderIndex":1,"optionType":0,"optionText":"Monthly recurring revenue (MRR)","correctAnswer":true},{"orderIndex":2,"optionType":0,"optionText":"Employee headcount","correctAnswer":false},{"orderIndex":3,"optionType":0,"optionText":"Office lease cost","correctAnswer":false}]},"enableFeedback":true,"feedback":{"type":1,"dataList":["<p>Correct. MRR tracks predictable recurring revenue over time.</p>","<p>Incorrect. MRR is the standard SaaS growth measure.</p>"]}}]}' {
"field": [
{
"label": "Which metric best measures recurring revenue growth for a SaaS business?",
"fieldType": 2,
"score": 5,
"isMandatory": true,
"multipleChoice": {
"selectionType": 0,
"fieldOptions": [
{
"orderIndex": 0,
"optionType": 0,
"optionText": "Customer acquisition cost (CAC)",
"correctAnswer": false
},
{
"orderIndex": 1,
"optionType": 0,
"optionText": "Monthly recurring revenue (MRR)",
"correctAnswer": true
},
{
"orderIndex": 2,
"optionType": 0,
"optionText": "Employee headcount",
"correctAnswer": false
},
{
"orderIndex": 3,
"optionType": 0,
"optionText": "Office lease cost",
"correctAnswer": false
}
]
},
"enableFeedback": true,
"feedback": {
"type": 1,
"dataList": [
"<p>Correct. MRR tracks predictable recurring revenue over time.</p>",
"<p>Incorrect. MRR is the standard SaaS growth measure.</p>"
]
}
}
]
}
{
"field": [
{
"label": "Which of the following are key parts of a business plan? Select all that apply.",
"fieldType": 2,
"score": 5,
"isMandatory": true,
"multipleChoice": {
"selectionType": 1,
"fieldOptions": [
{
"orderIndex": 0,
"optionType": 0,
"optionText": "Executive summary",
"correctAnswer": true
},
{
"orderIndex": 1,
"optionType": 0,
"optionText": "Market analysis",
"correctAnswer": true
},
{
"orderIndex": 2,
"optionType": 0,
"optionText": "Office furniture inventory",
"correctAnswer": false
},
{
"orderIndex": 3,
"optionType": 0,
"optionText": "Financial projections",
"correctAnswer": true
}
]
}
}
]
}
{
"field": [
{
"label": "A break-even analysis shows when total revenue equals total costs.",
"fieldType": 7,
"score": 2,
"isMandatory": true,
"multipleChoice": {
"selectionType": 0,
"fieldOptions": [
{
"orderIndex": 0,
"optionText": "True",
"correctAnswer": true
},
{
"orderIndex": 1,
"optionText": "False",
"correctAnswer": false
}
]
}
}
]
}
{
"field": [
{
"label": "The [A] statement summarizes revenue and expenses over a period, while the [B] sheet shows assets and liabilities at a point in time.",
"fieldType": 8,
"score": 4,
"isMandatory": true,
"isCaseSensitive": false,
"fillInBlank": {
"fieldOptions": [
{
"orderIndex": 0,
"optionText": "income"
},
{
"orderIndex": 1,
"optionText": "balance"
}
]
},
"enableFeedback": true,
"feedback": {
"type": 0,
"dataList": [
"<p>Income statement = performance over a period; balance sheet = position at a point in time.</p>"
]
}
}
]
}
{
"field": [
{
"label": "Explain why cash flow management is critical for small businesses in their first year.",
"fieldType": 16,
"score": 10,
"isMandatory": true,
"textLength": 300,
"textCountType": 1,
"essay": {
"fieldOptions": [
{
"orderIndex": 0,
"optionText": "Positive cash flow lets the business pay suppliers, salaries and running costs on time even when profits look healthy on paper."
}
]
}
}
]
}
Response Parameters
Questions added (Add), or the renumbered questions after the deleted one (Delete).
Hide Sub-Attributes
Show Sub-Attributes
Question ID (fieldId).
Test form ID (formUuid_sessionId).
Same as formId.
Question text.
Question type. Allowed: 2=Choice, 7=True or false, 8=Fill in the blank, 16=Essay.
Marks for a correct answer.
true when the question must be answered.
Not used. Always false.
Position of the question.
Not used. Always 0.
Allowed: 0=Default, 1=OCR.
Evaluation data for OCR.
Fill in the blank only. true when answers are case sensitive.
Essay only. Maximum answer length.
Essay only. Allowed: 0=Characters, 1=Words.
true when feedback is on.
Feedback for the question.
Show Sub-Attributes
Feedback mode. Allowed: 0=Same for any answer, 1=Correct and incorrect, 2=Per option.
Feedback texts. Supports rich text.
Type objects of the returned Choice and True or false questions.
Hide Sub-Attributes
Show Sub-Attributes
ID of the type object.
ID of the question (fields[].id).
Test form id (formUuid_sessionId); the part before the underscore is the form UUID.
Choice and True or false only. Allowed: 0=Single answer, 1=Multiple answers.
Type objects of the returned Fill in the blank questions.
Hide Sub-Attributes
Show Sub-Attributes
ID of the type object.
ID of the question (fields[].id).
Test form id (formUuid_sessionId); the part before the underscore is the form UUID.
Choice and True or false only. Allowed: 0=Single answer, 1=Multiple answers.
Type objects of the returned Essay questions.
Hide Sub-Attributes
Show Sub-Attributes
ID of the type object.
ID of the question (fields[].id).
Test form id (formUuid_sessionId); the part before the underscore is the form UUID.
Choice and True or false only. Allowed: 0=Single answer, 1=Multiple answers.
Options of all returned questions; match each to its question by fieldId.
Hide Sub-Attributes
Show Sub-Attributes
ID of the option.
Same as id.
ID of the question (fields[].id).
Test form id (formUuid_sessionId).
Option text, accepted blank answer, or essay reference answer.
Choice only. Content type of optionText. Allowed: 0=Text, 1=Image.
Position of the option or blank, from 0.
true when this option is correct (Choice, True or false).
ID of the parent multipleChoice object.
ID of the parent fillInBlank object.
ID of the parent essay object.
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, or type is not 3. Use an academy owner, admin, course trainer or lesson owner and type=3; do not retry unchanged. | |
| ST_406 | FEATURE_NOT_AVAILABLE - The free plan cannot add test questions, or field or type is missing. Upgrade the plan, or send field and type=3; do not retry unchanged. | |
| ST_559 | ERROR_WHILE_CREATING_CUSTOM_FIELD_FOR_SESSION - No test with this form UUID in the lesson, or a question misses its type object or feedback. Fix formId or the question; do not retry unchanged. |
{
"fields": [
{
"id": "d4ebb48b-fea8-4260-8879-da6e839e25ba",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"form": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"label": "Which metric best measures recurring revenue growth for a SaaS business?",
"fieldType": "2",
"score": "5",
"isMandatory": "true",
"isUnique": "false",
"orderIndex": "2",
"preDefinedFieldId": "0",
"evaluationType": "0",
"evaluationData": "",
"enableFeedback": "true",
"feedback": {
"type": "1",
"dataList": [
"<p>Correct. MRR tracks predictable recurring revenue over time.</p>",
"<p>Incorrect. MRR is the standard SaaS growth measure.</p>"
]
}
}
],
"multipleChoice": [
{
"id": "5b7d2c1e-8f3a-4d6b-9c2e-1a4f6e8b0c3d",
"field": "d4ebb48b-fea8-4260-8879-da6e839e25ba",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"selectionType": "0"
}
],
"fieldOption": [
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c50",
"fieldOptionId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c50",
"fieldId": "d4ebb48b-fea8-4260-8879-da6e839e25ba",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"multipleChoice": "5b7d2c1e-8f3a-4d6b-9c2e-1a4f6e8b0c3d",
"optionText": "Customer acquisition cost (CAC)",
"optionType": "0",
"orderIndex": "0",
"correctAnswer": "false"
},
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c51",
"fieldOptionId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c51",
"fieldId": "d4ebb48b-fea8-4260-8879-da6e839e25ba",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"multipleChoice": "5b7d2c1e-8f3a-4d6b-9c2e-1a4f6e8b0c3d",
"optionText": "Monthly recurring revenue (MRR)",
"optionType": "0",
"orderIndex": "1",
"correctAnswer": "true"
},
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c52",
"fieldOptionId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c52",
"fieldId": "d4ebb48b-fea8-4260-8879-da6e839e25ba",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"multipleChoice": "5b7d2c1e-8f3a-4d6b-9c2e-1a4f6e8b0c3d",
"optionText": "Employee headcount",
"optionType": "0",
"orderIndex": "2",
"correctAnswer": "false"
},
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c53",
"fieldOptionId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c53",
"fieldId": "d4ebb48b-fea8-4260-8879-da6e839e25ba",
"formId": "7305cb9e-3913-49d7-8cb9-eebd159f5281_21603000000354002",
"multipleChoice": "5b7d2c1e-8f3a-4d6b-9c2e-1a4f6e8b0c3d",
"optionText": "Office lease cost",
"optionType": "0",
"orderIndex": "3",
"correctAnswer": "false"
}
]
}
{
"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.