Quiz API

batch_show

get
Query parameters
idsstring[]OptionalExample: ["160","161"]
Responses
get
/api/banks/batch_show
404

returns nothing when none of the banks belong to authorized user

create

post
Responses
post
/api/content_exports
404

populates the export_settings field with the given export_settings param

create

post
Responses
post
/api/courses
404

example at ./spec/requests/api/v1/courses_controller_spec.rb:208

destroy

delete
Path parameters
canvas_idintegerRequiredExample: 9999
Responses
delete
/api/courses/{canvas_id}
404

is expected to be not found

update

put
Path parameters
canvas_idintegerRequiredExample: 201
Responses
put
/api/courses/{canvas_id}
404

is expected to be not found

associate_courses

patch
Path parameters
canvas_idintegerRequiredExample: 196
Responses
patch
/api/courses/{canvas_id}/associate_courses
404

associates courses which have previously been archived

associate_quizzes

patch
Path parameters
canvas_idintegerRequiredExample: 550000000000154
Responses
patch
/api/courses/{canvas_id}/associate_quizzes
404

replaces the local canvas_id with the global canavs_id

check_shareability

post
Responses
post
/api/items/check_shareability
404

is expected to be bad request

create_batch

post
Responses
post
/api/quiz_clone_jobs/create_batch
404

is expected to be unprocessable

index

get
Query parameters
idsstring[]OptionalExample: ["1674","1675","1676","1677","1678","1679","1680","1681","1682","1683","1684","1685","1686","1687","1688","1689","1690","1691","1692","1693","1694","1695","1696","1697","1698","1699","1700","1701","1702","1703","1704","1705","1706","1707","1708","1709","1710","1711","1712","1713","1714","1715","1716","1717","1718","1719","1720","1721","1722","1723","1724"]
quiz_idintegerOptionalExample: 3499
Responses
get
/api/quiz_sessions
404

returns all the quiz sessions without paginating

show

get
Path parameters
idintegerRequiredExample: 1764
Query parameters
disable_ac_invalidationstringOptionalExample: true
idintegerOptionalExample: 1764
quiz_idintegerOptionalExample: 3533
quiz_session_idintegerOptionalExample: 1436
Responses
get
/api/quiz_sessions/{id}
404

does not invalidate the student access code

time

get
Path parameters
idintegerRequiredExample: 145
Responses
200

then the elapsed time should be the sum of the previous and current attempt

application/json
get
/api/quiz_sessions/{id}/time
200

then the elapsed time should be the sum of the previous and current attempt

index

get
Path parameters
quiz_session_idintegerRequiredExample: 146
Query parameters
formatstringOptionalExample: json
Responses
200

then the assignment will autosubmit and cannot be resumed

application/json
get
/api/quiz_sessions/{quiz_session_id}/quiz_session_response_events
200

then the assignment will autosubmit and cannot be resumed

index

get
Path parameters
quiz_session_idintegerRequiredExample: 160
Responses
200

should not modify the session response data

application/json
get
/api/quiz_sessions/{quiz_session_id}/session_item_responses
200

should not modify the session response data

create_batch

post
Responses
post
/api/quiz_sync_jobs/create_batch
404

returns created: false

index

get
Query parameters
context_idintegerOptionalExample: 2462
formatstringOptionalExample: json
quiz_idsstring[]OptionalExample: ["2762","2764"]
versionintegerOptionalExample: 1
Responses
get
/api/quizzes

create

post
Path parameters
quiz_idintegerRequiredExample: 1461
Responses
post
/api/quizzes/{quiz_id}/quiz_clone_jobs
404

does not create a bank share job

check_shareability

post
Responses
post
/api/stimuli/check_shareability
404

indicates the content is shareable

index

get
Query parameters
filterstringOptionalExample: a
pageintegerOptionalExample: 1
per_pageintegerOptionalExample: 1
Responses
get
/api/tags
404

paginates properly

Last updated

Was this helpful?