Assessment Question Banks
An AssessmentQuestionBank object looks like:
{
// The ID of the assessment question bank.
"id": 1,
// The ID of the context (course or account) the question bank belongs to.
"context_id": 2,
// The type of context (Course or Account).
"context_type": "Course",
// The title of the question bank.
"title": "Chapter 1 Questions",
// The workflow state of the question bank.
"workflow_state": "active",
// The number of questions in the bank.
"assessment_question_count": 10,
// The combined context type and ID.
"context_code": "course_2",
// The date and time the question bank was created.
"created_at": "2013-01-01T00:00:00Z",
// The date and time the question bank was last updated.
"updated_at": "2013-01-01T00:00:00Z"
}An AssessmentQuestion object looks like:
List question banks
AssessmentQuestionBanksController#index
GET /api/v1/question_banks
Scope: url:GET|/api/v1/question_banks
Returns the paginated list of question banks for a given context.
Request Parameters:
context_type
Required string
The type of context. Must be either "Course" or "Account". Allowed values: Course, Account
context_id
Required integer
The id of the context.
include_question_count
boolean
Whether to include the number of questions in each bank.
Example Request:
Returns a list of AssessmentQuestionBank objects.
Get a single question bank
AssessmentQuestionBanksController#show
GET /api/v1/question_banks/:id
Scope: url:GET|/api/v1/question_banks/:id
Returns the question bank with the given id
Request Parameters:
id
Required integer
The question bank unique identifier.
include_question_count
boolean
Whether to include the number of questions in the bank.
Returns an AssessmentQuestionBank object.
List assessment questions for a question bank
AssessmentQuestionBanksController#questions
GET /api/v1/question_banks/:id/questions
Scope: url:GET|/api/v1/question_banks/:id/questions
Returns the paginated list of assessment questions in this bank.
Request Parameters:
id
Required integer
The question bank unique identifier.
Example Request:
Returns a list of AssessmentQuestion objects.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated
Was this helpful?