Quiz Question Groups
API for accessing information on quiz question groups
A QuizGroup object looks like:
Quizzes::QuizGroupsController#show
GET /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
GET /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
Scope: url:GET|/api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
Returns details of the quiz group with the given id.
Returns a QuizGroup object.
Quizzes::QuizGroupsController#create
POST /api/v1/courses/:course_id/quizzes/:quiz_id/groups
POST /api/v1/courses/:course_id/quizzes/:quiz_id/groups
Scope: url:POST|/api/v1/courses/:course_id/quizzes/:quiz_id/groups
Create a new question group for this quiz
201 Created response code is returned if the creation was successful.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The name of the question group. |
|
| The number of questions to randomly select for this group. |
|
| The number of points to assign to each question in the group. |
|
| The id of the assessment question bank to pull questions from. |
Example Response:
Quizzes::QuizGroupsController#update
PUT /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
PUT /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
Scope: url:PUT|/api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
Update a question group
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The name of the question group. |
|
| The number of questions to randomly select for this group. |
|
| The number of points to assign to each question in the group. |
Example Response:
Quizzes::QuizGroupsController#destroy
DELETE /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
DELETE /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
Scope: url:DELETE|/api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id
Delete a question group
<b>204 No Content<b> response code is returned if the deletion was successful.
Quizzes::QuizGroupsController#reorder
POST /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id/reorder
POST /api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id/reorder
Scope: url:POST|/api/v1/courses/:course_id/quizzes/:quiz_id/groups/:id/reorder
Change the order of the quiz questions within the group
<b>204 No Content<b> response code is returned if the reorder was successful.
Request Parameters:
Parameter | Type | Description |
---|---|---|
| Required | The associated item’s unique identifier |
|
| The type of item is always ‘question’ for a group Allowed values: |
© Instructure, Inc. Generated on Wed Nov 6 14:20:08 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated