> For the complete documentation index, see [llms.txt](https://docs.api.intratool.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.intratool.de/api-reference/surveys/survey-vote-selected-answer-options.md).

# SurveyVoteSelectedAnswerOptions

## Introduction

`SurveyVoteSelectedAnswerOptions` connect a [SurveyVote](/api-reference/surveys/survey-votes.md) with its selected [SurveyAnswerOptions](/api-reference/surveys/survey-answer-options.md). They are read-only and created with a vote.

## Model Definition

**Alias**

`surveyVoteSelectedAnswerOption`

## List by Survey

List selected answer options for one `Survey`.

**Definition**

<mark style="color:green;">`GET`</mark> `/api/surveys/{survey}/selected-answer-options`

**Route Parameters**

| Parameter | Type      | Description |
| --------- | --------- | ----------- |
| `survey`  | `integer` | Survey ID.  |

**Request Keys**

| Key       | Type      | Default    | Description                       |
| --------- | --------- | ---------- | --------------------------------- |
| `selects` | `string`  | All fields | Comma-separated fields to return. |
| `limit`   | `integer` | No limit   | Maximum number of selections.     |

**Example Request**

{% tabs %}
{% tab title="PHP" %}

```php
$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/surveys/31/selected-answer-options', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);
```

{% endtab %}
{% endtabs %}

**Example Response**

```json
[
  {
    "id": 501,
    "survey_vote_id": 121,
    "survey_answer_option_id": 81
  },
  {
    "id": 502,
    "survey_vote_id": 122,
    "survey_answer_option_id": 82
  }
]
```

## Summary by Survey

Summarize selected answer options for one `Survey`.

**Definition**

<mark style="color:green;">`GET`</mark> `/api/surveys/{survey}/selected-answer-options/summary`

**Route Parameters**

| Parameter | Type      | Description |
| --------- | --------- | ----------- |
| `survey`  | `integer` | Survey ID.  |

**Example Request**

{% tabs %}
{% tab title="PHP" %}

```php
$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/surveys/31/selected-answer-options/summary', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);
```

{% endtab %}
{% endtabs %}

**Example Response**

```json
[
  {
    "survey_answer_option_id": 81,
    "count": 14
  },
  {
    "survey_answer_option_id": 82,
    "count": 6
  }
]
```
