Create Question Bank
Creates an empty question bank in your organization, tagged with an exam (category), subject and topic. Add questions to it with "Create Question", then attach it to a test or exercise.
POST
/qbanksCreate Question Bank
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/qbanks' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"question_list_name":"demobank","engage_exam_tag_id":"2","engage_subject_tag_id":"6","engage_topic_tag_id":"36","difficulty":1,"question_type":1}'{
"code": 200,
"message": "Question bank created successfully !",
"q_bank": {
"question_list_id": 288,
"question_list_name": "demobank",
"exam_id": "2",
"engage_subject_tag_id": "6",
"engage_topic_tag_id": "36",
"difficulty": 1,
"question_type": 1
}
}Access: Institute admins, admins and tutors, plus custom roles with question bank write permission.
Request body: form-data with one field, JSONString, containing this JSON:
Body
JSONStringName of the bank.
descriptionstring
Description.
Existing exam (category) of your institute.
Creates a new exam tag with this name instead.
Existing subject under that exam.
Creates a new subject under the exam.
Existing topic under that subject.
Creates a new topic under the subject.
difficultyinteger
1 Easy, 2 Medium, 3 Hard. Questions inherit it when they don't set their own.question_typeinteger
Main question type, same codes as
input_type (0 Single correct … 7 Psychological). Default 0.Response
codeinteger
Example:
200messagestring
Example:
Question bank created successfully !q_bankobject
Show child attributesHide child attributes
Example:
demobankq_bank.exam_idstring
Example:
2Example:
6Example:
36q_bank.difficultyinteger
Example:
1q_bank.question_typeinteger
Example:
1Notes: Errors "Exam Details Not Found", "Subject Details Not Found" or "Topic Details Not Found" when an ID doesn't exist or doesn't belong under its parent (for example a subject from another exam). Rate limit: 30 requests per minute; going over locks you out for 30 minutes.