Attach Question Bank to Online Exercise
Attaches a question bank to a part of an online exercise, so its questions appear in that exercise. You can get the list of question banks from the question bank list request in this collection.
POST
/addexistingquesbankAttach Question Bank to Online Exercise
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/addexistingquesbank' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"question_list_id":36,"test_part_id":1548,"num_of_questions":-1}'{
"code": 200,
"message": "Question bank added successfully !",
"q_bank": {
"question_list_id": 36,
"question_list_name": "Subjective Questions for test",
"test_question_list_id": 871,
"randomize": null,
"total_questions": null,
"num_questions": 9
}
}Access: Institute admins, admins and tutors, plus custom roles with curriculum write permission.
Request body: form-data with one field, JSONString, containing this JSON:
Body
JSONStringQuestion bank to attach.
Part of the test or exercise to attach it to. A new test or exercise has one part, "Part A".
num_of_questionsinteger
How many questions to use from the bank. Default
-1 (all).Response
codeinteger
Example:
200messagestring
Example:
Question bank added successfully !q_bankobject
Show child attributesHide child attributes
q_bank.question_list_idinteger
Example:
36Example:
Subjective Questions for testq_bank.test_question_list_idinteger
Keep it: you need it to remove the bank from the part later
Example:
871q_bank.randomizenull
q_bank.num_questionsinteger
Example:
9Notes: The assessment's maximum marks are recalculated. Errors: "Question bank already added" when the bank is already in any part of the same assessment; "Invalid test part id"; "Invalid course id" when the part belongs to another institute. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.