Current section

Files

Jump to
docusign lib docusign api template_bulk_recipients.ex
Raw

lib/docusign/api/template_bulk_recipients.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.4.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DocuSign.Api.TemplateBulkRecipients do
@moduledoc """
API calls for all endpoints tagged `TemplateBulkRecipients`.
"""
alias DocuSign.Connection
import DocuSign.RequestBuilder
@doc """
Deletes the bulk recipient list on a template.
Deletes the bulk recipient list on a template.
### Parameters
- `connection` (DocuSign.Connection): Connection to server
- `account_id` (String.t): The external account number (int) or account ID GUID.
- `recipient_id` (String.t): A local reference that senders use to map recipients to other objects, such as specific document tabs. Within an envelope, each `recipientId` must be unique, but there is no uniqueness requirement across envelopes. For example, many envelopes assign the first recipient a `recipientId` of `1`.
- `template_id` (String.t): The ID of the template.
- `opts` (keyword): Optional parameters
### Returns
- `{:ok, DocuSign.Model.BulkRecipientsUpdateResponse.t}` on success
- `{:error, Tesla.Env.t}` on failure
"""
@spec recipients_delete_template_bulk_recipients_file(
Tesla.Env.client(),
String.t(),
String.t(),
String.t(),
keyword()
) ::
{:ok, DocuSign.Model.ErrorDetails.t()}
| {:ok, DocuSign.Model.BulkRecipientsUpdateResponse.t()}
| {:error, Tesla.Env.t()}
def recipients_delete_template_bulk_recipients_file(
connection,
account_id,
recipient_id,
template_id,
_opts \\ []
) do
request =
%{}
|> method(:delete)
|> url(
"/v2.1/accounts/#{account_id}/templates/#{template_id}/recipients/#{recipient_id}/bulk_recipients"
)
|> Enum.into([])
connection
|> Connection.request(request)
|> evaluate_response([
{200, %DocuSign.Model.BulkRecipientsUpdateResponse{}},
{400, %DocuSign.Model.ErrorDetails{}}
])
end
end