Polls
Manage polls
A Poll object looks like:
Polling::PollsController#index
GET /api/v1/polls
GET /api/v1/polls
Scope: url:GET|/api/v1/polls
Returns the paginated list of polls for the current user.
Example Response:
GET /api/v1/polls/:id
GET /api/v1/polls/:id
Scope: url:GET|/api/v1/polls/:id
Returns the poll with the given id
Example Response:
Polling::PollsController#create
POST /api/v1/polls
POST /api/v1/polls
Scope: url:POST|/api/v1/polls
Create a new poll for the current user
Request Parameters:
Parameter | Type | Description |
---|---|---|
| Required | The title of the poll. |
|
| A brief description or instructions for the poll. |
Example Response:
Polling::PollsController#update
PUT /api/v1/polls/:id
PUT /api/v1/polls/:id
Scope: url:PUT|/api/v1/polls/:id
Update an existing poll belonging to the current user
Request Parameters:
Parameter | Type | Description |
---|---|---|
| Required | The title of the poll. |
|
| A brief description or instructions for the poll. |
Example Response:
Polling::PollsController#destroy
DELETE /api/v1/polls/:id
DELETE /api/v1/polls/:id
Scope: url:DELETE|/api/v1/polls/:id
204 No Content response code is returned if the deletion was successful.
© 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