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

Service for Category API operations.

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

# `create`

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

To create a category for Questions

Operation: `CreateInsightsQuestionnairesCategory` | Tags: FlexV1InsightsQuestionnairesCategory

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Name` | string | The name of this category. |

# `delete`

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

Operation: `DeleteInsightsQuestionnairesCategory` | Tags: FlexV1InsightsQuestionnairesCategory

# `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 categories

Operation: `ListInsightsQuestionnairesCategory` | Tags: FlexV1InsightsQuestionnairesCategory

# `stream`

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

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

# `update`

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

To update the category for Questions

Operation: `UpdateInsightsQuestionnairesCategory` | Tags: FlexV1InsightsQuestionnairesCategory

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Name` | string | The name of this category. |

---

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