Docs home

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/qbanks
Create 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:

BodyJSONString
question_list_namestringrequired
Name of the bank.
Description.
engage_exam_tag_idintegerOne of id or name
Existing exam (category) of your institute.
engage_exam_tag_namestringOne of id or name
Creates a new exam tag with this name instead.
engage_subject_tag_idintegerOne of id or name
Existing subject under that exam.
engage_subject_tag_namestringOne of id or name
Creates a new subject under the exam.
engage_topic_tag_idintegerOne of id or name
Existing topic under that subject.
engage_topic_tag_namestringOne of id or name
Creates a new topic under the subject.
difficultyinteger
1 Easy, 2 Medium, 3 Hard. Questions inherit it when they don't set their own.
Main question type, same codes as input_type (0 Single correct … 7 Psychological). Default 0.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Question bank created successfully !
q_bankobject
Show child attributesHide child attributes
The new bank
Example: 288
Example: demobank
Example: 2
Example: 1
Example: 1

Notes: 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.

Updated yesterday

Ask AI