All URIs are relative to https://www.docusign.net/restapi
Method | HTTP request | Description |
---|---|---|
accountCustomFieldsDeleteAccountCustomFields | DELETE /v2.1/accounts/{accountId}/custom_fields/{customFieldId} | Deletes an account custom field. |
accountCustomFieldsGetAccountCustomFields | GET /v2.1/accounts/{accountId}/custom_fields | Gets a list of custom fields. |
accountCustomFieldsPostAccountCustomFields | POST /v2.1/accounts/{accountId}/custom_fields | Creates an account custom field. |
accountCustomFieldsPutAccountCustomFields | PUT /v2.1/accounts/{accountId}/custom_fields/{customFieldId} | Updates an account custom field. |
open class func accountCustomFieldsDeleteAccountCustomFields(accountId: String, customFieldId: String, applyToTemplates: String? = nil, headers: HTTPHeaders = DocuSignAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<AccountCustomFieldsDeleteAccountCustomFields>
Deletes an account custom field.
This method deletes an existing account custom field.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import DocuSignAPI
let accountId = "accountId_example" // String | The external account number (int) or account ID GUID.
let customFieldId = "customFieldId_example" // String | The id of the custom field.
let applyToTemplates = "applyToTemplates_example" // String | (optional)
// Deletes an account custom field.
AccountCustomFieldsAPI.accountCustomFieldsDeleteAccountCustomFields(accountId: accountId, customFieldId: customFieldId, applyToTemplates: applyToTemplates).whenComplete { result in
switch result {
case .failure(let error):
// process error
case .success(let response):
switch response {
// process decoded response value or raw ClientResponse
case .http200(let value, let raw):
case .http400(let value, let raw):
case .http0(let value, let raw):
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | The external account number (int) or account ID GUID. | |
customFieldId | String | The id of the custom field. | |
applyToTemplates | String | [optional] |
public enum AccountCustomFieldsDeleteAccountCustomFields {
case http200(value: Void?, raw: ClientResponse)
case http400(value: ErrorDetails?, raw: ClientResponse)
case http0(value: Void?, raw: ClientResponse)
}
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func accountCustomFieldsGetAccountCustomFields(accountId: String, headers: HTTPHeaders = DocuSignAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<AccountCustomFieldsGetAccountCustomFields>
Gets a list of custom fields.
This method returns a list of the envelope and document custom fields associated with an account.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import DocuSignAPI
let accountId = "accountId_example" // String | The external account number (int) or account ID GUID.
// Gets a list of custom fields.
AccountCustomFieldsAPI.accountCustomFieldsGetAccountCustomFields(accountId: accountId).whenComplete { result in
switch result {
case .failure(let error):
// process error
case .success(let response):
switch response {
// process decoded response value or raw ClientResponse
case .http200(let value, let raw):
case .http400(let value, let raw):
case .http0(let value, let raw):
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | The external account number (int) or account ID GUID. |
public enum AccountCustomFieldsGetAccountCustomFields {
case http200(value: AccountCustomFields?, raw: ClientResponse)
case http400(value: ErrorDetails?, raw: ClientResponse)
case http0(value: AccountCustomFields?, raw: ClientResponse)
}
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func accountCustomFieldsPostAccountCustomFields(accountId: String, applyToTemplates: String? = nil, customField: CustomField? = nil, headers: HTTPHeaders = DocuSignAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<AccountCustomFieldsPostAccountCustomFields>
Creates an account custom field.
This method creates a custom field and makes it available for all new envelopes associated with an account.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import DocuSignAPI
let accountId = "accountId_example" // String | The external account number (int) or account ID GUID.
let applyToTemplates = "applyToTemplates_example" // String | (Optional) When set to **true**, the new custom field is applied to all of the templates on the account. (optional)
let customField = customField(customFieldType: "customFieldType_example", errorDetails: errorDetails(errorCode: "errorCode_example", message: "message_example"), fieldId: "fieldId_example", listItems: ["listItems_example"], name: "name_example", `required`: "`required`_example", show: "show_example", value: "value_example") // CustomField | (optional)
// Creates an account custom field.
AccountCustomFieldsAPI.accountCustomFieldsPostAccountCustomFields(accountId: accountId, applyToTemplates: applyToTemplates, customField: customField).whenComplete { result in
switch result {
case .failure(let error):
// process error
case .success(let response):
switch response {
// process decoded response value or raw ClientResponse
case .http201(let value, let raw):
case .http400(let value, let raw):
case .http0(let value, let raw):
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | The external account number (int) or account ID GUID. | |
applyToTemplates | String | (Optional) When set to true, the new custom field is applied to all of the templates on the account. | [optional] |
customField | CustomField | [optional] |
public enum AccountCustomFieldsPostAccountCustomFields {
case http201(value: AccountCustomFields?, raw: ClientResponse)
case http400(value: ErrorDetails?, raw: ClientResponse)
case http0(value: AccountCustomFields?, raw: ClientResponse)
}
No authorization required
- Content-Type: application/json, application/xml
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func accountCustomFieldsPutAccountCustomFields(accountId: String, customFieldId: String, applyToTemplates: String? = nil, customField: CustomField? = nil, headers: HTTPHeaders = DocuSignAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<AccountCustomFieldsPutAccountCustomFields>
Updates an account custom field.
This method updates an existing account custom field.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import DocuSignAPI
let accountId = "accountId_example" // String | The external account number (int) or account ID GUID.
let customFieldId = "customFieldId_example" // String | The id of the custom field.
let applyToTemplates = "applyToTemplates_example" // String | (optional)
let customField = customField(customFieldType: "customFieldType_example", errorDetails: errorDetails(errorCode: "errorCode_example", message: "message_example"), fieldId: "fieldId_example", listItems: ["listItems_example"], name: "name_example", `required`: "`required`_example", show: "show_example", value: "value_example") // CustomField | (optional)
// Updates an account custom field.
AccountCustomFieldsAPI.accountCustomFieldsPutAccountCustomFields(accountId: accountId, customFieldId: customFieldId, applyToTemplates: applyToTemplates, customField: customField).whenComplete { result in
switch result {
case .failure(let error):
// process error
case .success(let response):
switch response {
// process decoded response value or raw ClientResponse
case .http200(let value, let raw):
case .http400(let value, let raw):
case .http0(let value, let raw):
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | String | The external account number (int) or account ID GUID. | |
customFieldId | String | The id of the custom field. | |
applyToTemplates | String | [optional] | |
customField | CustomField | [optional] |
public enum AccountCustomFieldsPutAccountCustomFields {
case http200(value: AccountCustomFields?, raw: ClientResponse)
case http400(value: ErrorDetails?, raw: ClientResponse)
case http0(value: AccountCustomFields?, raw: ClientResponse)
}
No authorization required
- Content-Type: application/json, application/xml
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]