# `Twilio.Api.V2010.AccountService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/api/v2010/account_service.ex#L2)

Twilio accounts (aka Project) or subaccounts

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

# `create`

```elixir
@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Api.V2010.Account.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Create a new Twilio Subaccount from the account making the request

Operation: `CreateAccount` | Tags: Api20100401Account

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `FriendlyName` | string | A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` |

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Api.V2010.Account.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Fetch the account specified by the provided Account Sid

Operation: `FetchAccount` | Tags: Api20100401Account

# `list`

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

Retrieves a collection of Accounts belonging to the account used to make the request

Operation: `ListAccount` | Tags: Api20100401Account

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `FriendlyName` | string | Only return the Account resources with friendly names that exactly match this name. |
| `Status` | string | Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. |

# `stream`

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

Stream: Retrieves a collection of Accounts belonging to the account used to make the request (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Api.V2010.Account.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Modify the properties of a given Account

Operation: `UpdateAccount` | Tags: Api20100401Account

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `FriendlyName` | string | Update the human-readable description of this Account |
| `Status` | string |  Values: `active`, `suspended`, `closed` |

---

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