Docs home

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/addexistingquesbank
Attach 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:

BodyJSONString
question_list_idintegerrequired
Question bank to attach.
test_part_idintegerrequired
Part of the test or exercise to attach it to. A new test or exercise has one part, "Part A".
How many questions to use from the bank. Default -1 (all).
Response200application/json
codeinteger
Example: 200
messagestring
Example: Question bank added successfully !
q_bankobject
Show child attributesHide child attributes
Example: 237
Example: All Question Type QB
Keep it: you need it to remove the bank from the part later
Example: 632
Example: 8

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

Updated yesterday

Ask AI