Attach Existing Question Bank
Attaches an existing question bank to a part of a test (quiz) or exercise, so its questions appear in that assessment.
POST
/addexistingquesbankAttach Existing Question Bank
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":237,"test_part_id":"1310","num_of_questions":0}'{
"code": 200,
"message": "Question bank added successfully !",
"q_bank": {
"question_list_id": 237,
"question_list_name": "All Question Type QB",
"test_question_list_id": 632,
"randomize": null,
"total_questions": null,
"num_questions": 8
}
}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:
237Example:
All Question Type QBq_bank.test_question_list_idinteger
Keep it: you need it to remove the bank from the part later
Example:
632q_bank.randomizenull
q_bank.num_questionsinteger
Example:
8Notes: 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.