# `DocuSign.Api.AccountCustomFields`
[🔗](https://github.com/neilberkman/docusign_elixir/blob/v3.4.0/lib/docusign/api/account_custom_fields.ex#L5)

API calls for all endpoints tagged `AccountCustomFields`.

# `account_custom_fields_delete_account_custom_fields`

```elixir
@spec account_custom_fields_delete_account_custom_fields(
  DocuSign.Connection.t(),
  String.t(),
  String.t(),
  keyword()
) :: {:ok, nil} | {:error, Req.Response.t()}
```

Deletes an account custom field.
This method deletes an existing account custom field.

### Parameters

- `connection` (DocuSign.Connection): Connection to server
- `account_id` (String.t): The external account number (int) or account ID GUID.
- `custom_field_id` (String.t): The ID of the custom field.
- `opts` (keyword): Optional parameters
  - `:apply_to_templates` (String.t): 

### Returns

- `{:ok, nil}` on success
- `{:error, Req.Response.t}` on failure

# `account_custom_fields_get_account_custom_fields`

```elixir
@spec account_custom_fields_get_account_custom_fields(
  DocuSign.Connection.t(),
  String.t(),
  keyword()
) ::
  {:ok, DocuSign.Model.AccountCustomFields.t()} | {:error, Req.Response.t()}
```

Gets a list of custom fields.
This method returns a list of the envelope and document custom fields associated with an account.

### Parameters

- `connection` (DocuSign.Connection): Connection to server
- `account_id` (String.t): The external account number (int) or account ID GUID.
- `opts` (keyword): Optional parameters

### Returns

- `{:ok, DocuSign.Model.AccountCustomFields.t}` on success
- `{:error, Req.Response.t}` on failure

# `account_custom_fields_post_account_custom_fields`

```elixir
@spec account_custom_fields_post_account_custom_fields(
  DocuSign.Connection.t(),
  String.t(),
  keyword()
) ::
  {:ok, DocuSign.Model.AccountCustomFields.t()} | {:error, Req.Response.t()}
```

Creates an account custom field.
This method creates a custom field and makes it available for all new envelopes associated with an account.

### Parameters

- `connection` (DocuSign.Connection): Connection to server
- `account_id` (String.t): The external account number (int) or account ID GUID.
- `opts` (keyword): Optional parameters
  - `:apply_to_templates` (String.t): (Optional) When **true,** the new custom field is applied to all of the templates on the account.
  - `:body` (CustomField): 

### Returns

- `{:ok, DocuSign.Model.AccountCustomFields.t}` on success
- `{:error, Req.Response.t}` on failure

# `account_custom_fields_put_account_custom_fields`

```elixir
@spec account_custom_fields_put_account_custom_fields(
  DocuSign.Connection.t(),
  String.t(),
  String.t(),
  keyword()
) :: {:ok, DocuSign.Model.AccountCustomFields.t()} | {:error, Req.Response.t()}
```

Updates an account custom field.
This method updates an existing account custom field.

### Parameters

- `connection` (DocuSign.Connection): Connection to server
- `account_id` (String.t): The external account number (int) or account ID GUID.
- `custom_field_id` (String.t): The ID of the custom field.
- `opts` (keyword): Optional parameters
  - `:apply_to_templates` (String.t): 
  - `:body` (CustomField): 

### Returns

- `{:ok, DocuSign.Model.AccountCustomFields.t}` on success
- `{:error, Req.Response.t}` on failure

---

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