# `Twilio.Flex.V1.Insight.QualityManagement.QuestionService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/flex/v1/insight/quality_management/question_service.ex#L2)

Service for Question API operations.

Operations: `list`, `create`, `update`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Flex.V1.Insight.QualityManagement.Question.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

To create a question for a Category

Operation: `CreateInsightsQuestionnairesQuestion` | Tags: FlexV1InsightsQuestionnairesQuestion

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `AllowNa` | boolean | The flag to enable for disable NA for answer. |
| `AnswerSetId` | string | The answer_set for the question. |
| `CategorySid` | string | The SID of the category |
| `Question` | string | The question. |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Description` | string | The description for the question. |

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Operation: `DeleteInsightsQuestionnairesQuestion` | Tags: FlexV1InsightsQuestionnairesQuestion

# `list`

```elixir
@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

To get all the question for the given categories

Operation: `ListInsightsQuestionnairesQuestion` | Tags: FlexV1InsightsQuestionnairesQuestion

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `CategorySid` | array | The list of category SIDs |

# `stream`

```elixir
@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()
```

Stream: To get all the question for the given categories (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Flex.V1.Insight.QualityManagement.Question.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

To update the question

Operation: `UpdateInsightsQuestionnairesQuestion` | Tags: FlexV1InsightsQuestionnairesQuestion

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `AllowNa` | boolean | The flag to enable for disable NA for answer. |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `AnswerSetId` | string | The answer_set for the question. |
| `CategorySid` | string | The SID of the category |
| `Description` | string | The description for the question. |
| `Question` | string | The question. |

---

*Consult [api-reference.md](api-reference.md) for complete listing*
