> For the complete documentation index, see [llms.txt](https://developerdocs.instructure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developerdocs.instructure.com/services/canvas/resources/poll_submissions.md).

# PollSubmissions

Manage submissions for polls

#### A PollSubmission object looks like: <a href="#pollsubmission" id="pollsubmission"></a>

```js
{
  // The unique identifier for the poll submission.
  "id": 1023,
  // The unique identifier of the poll choice chosen for this submission.
  "poll_choice_id": 155,
  // the unique identifier of the user who submitted this poll submission.
  "user_id": 4555,
  // The date and time the poll submission was submitted.
  "created_at": "2013-11-07T13:16:18Z"
}
```

## [Get a single poll submission](#method.polling/poll_submissions.show) <a href="#method.polling-poll_submissions.show" id="method.polling-poll_submissions.show"></a>

[Polling::PollSubmissionsController#show](https://github.com/instructure/canvas-lms/blob/master/app/controllers/polling/poll_submissions_controller.rb)

#### `GET /api/v1/polls/:poll_id/poll_sessions/:poll_session_id/poll_submissions/:id`

**Scope:** `url:GET|/api/v1/polls/:poll_id/poll_sessions/:poll_session_id/poll_submissions/:id`

Returns the poll submission with the given id

#### Example Response:

```js
{
  "poll_submissions": [PollSubmission]
}
```

## [Create a single poll submission](#method.polling/poll_submissions.create) <a href="#method.polling-poll_submissions.create" id="method.polling-poll_submissions.create"></a>

[Polling::PollSubmissionsController#create](https://github.com/instructure/canvas-lms/blob/master/app/controllers/polling/poll_submissions_controller.rb)

#### `POST /api/v1/polls/:poll_id/poll_sessions/:poll_session_id/poll_submissions`

**Scope:** `url:POST|/api/v1/polls/:poll_id/poll_sessions/:poll_session_id/poll_submissions`

Create a new poll submission for this poll session

#### Request Parameters:

| Parameter                            | Type               | Description                                 |
| ------------------------------------ | ------------------ | ------------------------------------------- |
| `poll_submissions[][poll_choice_id]` | Required `integer` | The chosen poll choice for this submission. |

#### Example Response:

```js
{
  "poll_submissions": [PollSubmission]
}
```

***

This documentation is generated directly from the Canvas LMS source code, available [on Github](https://github.com/instructure/canvas-lms).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developerdocs.instructure.com/services/canvas/resources/poll_submissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
