View Source DocuSign.Api.AccountCustomFields (DocuSign v1.2.0)

API calls for all endpoints tagged AccountCustomFields.

Summary

Functions

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

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

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

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

Functions

Link to this function

account_custom_fields_delete_account_custom_fields(connection, account_id, custom_field_id, opts \\ [])

View Source
@spec account_custom_fields_delete_account_custom_fields(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  keyword()
) ::
  {:ok, nil} | {:ok, DocuSign.Model.ErrorDetails.t()} | {:error, Tesla.Env.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, Tesla.Env.t} on failure
Link to this function

account_custom_fields_get_account_custom_fields(connection, account_id, opts \\ [])

View Source
@spec account_custom_fields_get_account_custom_fields(
  Tesla.Env.client(),
  String.t(),
  keyword()
) ::
  {:ok, DocuSign.Model.ErrorDetails.t()}
  | {:ok, DocuSign.Model.AccountCustomFields.t()}
  | {:error, Tesla.Env.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, Tesla.Env.t} on failure
Link to this function

account_custom_fields_post_account_custom_fields(connection, account_id, opts \\ [])

View Source
@spec account_custom_fields_post_account_custom_fields(
  Tesla.Env.client(),
  String.t(),
  keyword()
) ::
  {:ok, DocuSign.Model.ErrorDetails.t()}
  | {:ok, DocuSign.Model.AccountCustomFields.t()}
  | {:error, Tesla.Env.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, Tesla.Env.t} on failure
Link to this function

account_custom_fields_put_account_custom_fields(connection, account_id, custom_field_id, opts \\ [])

View Source
@spec account_custom_fields_put_account_custom_fields(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  keyword()
) ::
  {:ok, DocuSign.Model.ErrorDetails.t()}
  | {:ok, DocuSign.Model.AccountCustomFields.t()}
  | {:error, Tesla.Env.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, Tesla.Env.t} on failure