Remove Part
Removes a question bank from a test or exercise part. The bank and its questions are not deleted; they just stop being used in that assessment.
DELETE
/qbank/removefrompart/{testPartId}Remove Part
curl --request DELETE \
--url 'https://<your-api-host>/nuSource/api/v1/qbank/removefrompart/{testPartId}' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>'{
"code": 200,
"message": "Question Bank removed from assessment successfully !"
}Access: Institute admins, admins and tutors, plus custom roles with curriculum or question bank delete permission.
Path parameters
The link between the bank and the part:
test_question_list_id returned by "Attach Existing Question Bank" (not the question bank ID).Response
codeinteger
Example:
200messagestring
"Question Bank removed from assessment successfully !"
Example:
Question Bank removed from assessment successfully !Notes: The assessment's maximum marks are recalculated. Errors: "Invalid question bank." when the ID is not a bank attached to a part; "Invalid course id" when the assessment belongs to another institute; and, when the part has a "Maximum Questions Allowed" setting, an error if removing the bank would leave fewer questions than that. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.