Poll Sessions
Manage poll sessions
A PollSession object looks like:
Polling::PollSessionsController#index
GET /api/v1/polls/:poll_id/poll_sessions
GET /api/v1/polls/:poll_id/poll_sessions
Scope: url:GET|/api/v1/polls/:poll_id/poll_sessions
Returns the paginated list of PollSessions in this poll.
Example Response:
Polling::PollSessionsController#show
GET /api/v1/polls/:poll_id/poll_sessions/:id
GET /api/v1/polls/:poll_id/poll_sessions/:id
Scope: url:GET|/api/v1/polls/:poll_id/poll_sessions/:id
Returns the poll session with the given id
Example Response:
Polling::PollSessionsController#create
POST /api/v1/polls/:poll_id/poll_sessions
POST /api/v1/polls/:poll_id/poll_sessions
Scope: url:POST|/api/v1/polls/:poll_id/poll_sessions
Create a new poll session for this poll
Request Parameters:
Parameter | Type | Description |
---|---|---|
| Required | The id of the course this session is associated with. |
|
| The id of the course section this session is associated with. |
|
| Whether or not results are viewable by students. |
Example Response:
Polling::PollSessionsController#update
PUT /api/v1/polls/:poll_id/poll_sessions/:id
PUT /api/v1/polls/:poll_id/poll_sessions/:id
Scope: url:PUT|/api/v1/polls/:poll_id/poll_sessions/:id
Update an existing poll session for this poll
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The id of the course this session is associated with. |
|
| The id of the course section this session is associated with. |
|
| Whether or not results are viewable by students. |
Example Response:
Polling::PollSessionsController#destroy
DELETE /api/v1/polls/:poll_id/poll_sessions/:id
DELETE /api/v1/polls/:poll_id/poll_sessions/:id
Scope: url:DELETE|/api/v1/polls/:poll_id/poll_sessions/:id
204 No Content response code is returned if the deletion was successful.
Polling::PollSessionsController#open
GET /api/v1/polls/:poll_id/poll_sessions/:id/open
GET /api/v1/polls/:poll_id/poll_sessions/:id/open
Scope: url:GET|/api/v1/polls/:poll_id/poll_sessions/:id/open
Polling::PollSessionsController#close
GET /api/v1/polls/:poll_id/poll_sessions/:id/close
GET /api/v1/polls/:poll_id/poll_sessions/:id/close
Scope: url:GET|/api/v1/polls/:poll_id/poll_sessions/:id/close
Polling::PollSessionsController#opened
GET /api/v1/poll_sessions/opened
GET /api/v1/poll_sessions/opened
Scope: url:GET|/api/v1/poll_sessions/opened
A paginated list of all opened poll sessions available to the current user.
Example Response:
Polling::PollSessionsController#closed
GET /api/v1/poll_sessions/closed
GET /api/v1/poll_sessions/closed
Scope: url:GET|/api/v1/poll_sessions/closed
A paginated list of all closed poll sessions available to the current user.
Example Response:
© 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