# `Twilio.Studio.V2.FlowService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/studio/v2/flow_service.ex#L2)

Studio flows

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

# `create`

```elixir
@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Studio.V2.Flow.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Create a Flow.

Operation: `CreateFlow` | Tags: StudioV2Flow

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Definition` | string | JSON representation of flow definition. |
| `FriendlyName` | string | The string that you assigned to describe the Flow. |
| `Status` | string |  Values: `draft`, `published` |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `CommitMessage` | string | Description of change made in the revision. |

# `delete`

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

Delete a specific Flow.

Operation: `DeleteFlow` | Tags: StudioV2Flow

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Studio.V2.Flow.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieve a specific Flow.

Operation: `FetchFlow` | Tags: StudioV2Flow

# `list`

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

Retrieve a list of all Flows.

Operation: `ListFlow` | Tags: StudioV2Flow

# `stream`

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

Stream: Retrieve a list of all Flows. (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Studio.V2.Flow.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Update a Flow.

Operation: `UpdateFlow` | Tags: StudioV2Flow

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Status` | string |  Values: `draft`, `published` |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `CommitMessage` | string | Description of change made in the revision. |
| `Definition` | string | JSON representation of flow definition. |
| `FriendlyName` | string | The string that you assigned to describe the Flow. |

---

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