# ObjectEzsigntemplateAPI
All URIs are relative to *https://prod.api.appcluster01.ca-central-1.ezmax.com/rest*
Method | HTTP request | Description
------------- | ------------- | -------------
[**ezsigntemplateCopyV1**](ObjectEzsigntemplateAPI.md#ezsigntemplatecopyv1) | **POST** /1/object/ezsigntemplate/{pkiEzsigntemplateID}/copy | Copy the Ezsigntemplate
[**ezsigntemplateCreateObjectV1**](ObjectEzsigntemplateAPI.md#ezsigntemplatecreateobjectv1) | **POST** /1/object/ezsigntemplate | Create a new Ezsigntemplate
[**ezsigntemplateDeleteObjectV1**](ObjectEzsigntemplateAPI.md#ezsigntemplatedeleteobjectv1) | **DELETE** /1/object/ezsigntemplate/{pkiEzsigntemplateID} | Delete an existing Ezsigntemplate
[**ezsigntemplateEditObjectV1**](ObjectEzsigntemplateAPI.md#ezsigntemplateeditobjectv1) | **PUT** /1/object/ezsigntemplate/{pkiEzsigntemplateID} | Edit an existing Ezsigntemplate
[**ezsigntemplateGetAutocompleteV2**](ObjectEzsigntemplateAPI.md#ezsigntemplategetautocompletev2) | **GET** /2/object/ezsigntemplate/getAutocomplete/{sSelector} | Retrieve Ezsigntemplates and IDs
[**ezsigntemplateGetListV1**](ObjectEzsigntemplateAPI.md#ezsigntemplategetlistv1) | **GET** /1/object/ezsigntemplate/getList | Retrieve Ezsigntemplate list
[**ezsigntemplateGetObjectV1**](ObjectEzsigntemplateAPI.md#ezsigntemplategetobjectv1) | **GET** /1/object/ezsigntemplate/{pkiEzsigntemplateID} | Retrieve an existing Ezsigntemplate
[**ezsigntemplateGetObjectV2**](ObjectEzsigntemplateAPI.md#ezsigntemplategetobjectv2) | **GET** /2/object/ezsigntemplate/{pkiEzsigntemplateID} | Retrieve an existing Ezsigntemplate
# **ezsigntemplateCopyV1**
```swift
open class func ezsigntemplateCopyV1(pkiEzsigntemplateID: Int, ezsigntemplateCopyV1Request: EzsigntemplateCopyV1Request, completion: @escaping (_ data: EzsigntemplateCopyV1Response?, _ error: Error?) -> Void)
```
Copy the Ezsigntemplate
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiEzsigntemplateID = 987 // Int |
let ezsigntemplateCopyV1Request = ezsigntemplate-copy-v1-Request(aFkiEzsignfoldertypeID: [123]) // EzsigntemplateCopyV1Request |
// Copy the Ezsigntemplate
ObjectEzsigntemplateAPI.ezsigntemplateCopyV1(pkiEzsigntemplateID: pkiEzsigntemplateID, ezsigntemplateCopyV1Request: ezsigntemplateCopyV1Request) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pkiEzsigntemplateID** | **Int** | |
**ezsigntemplateCopyV1Request** | [**EzsigntemplateCopyV1Request**](EzsigntemplateCopyV1Request.md) | |
### Return type
[**EzsigntemplateCopyV1Response**](EzsigntemplateCopyV1Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateCreateObjectV1**
```swift
open class func ezsigntemplateCreateObjectV1(ezsigntemplateCreateObjectV1Request: EzsigntemplateCreateObjectV1Request, completion: @escaping (_ data: EzsigntemplateCreateObjectV1Response?, _ error: Error?) -> Void)
```
Create a new Ezsigntemplate
The endpoint allows to create one or many elements at once.
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let ezsigntemplateCreateObjectV1Request = ezsigntemplate-createObject-v1-Request(aObjEzsigntemplate: [ezsigntemplate-RequestCompound(pkiEzsigntemplateID: 123, fkiEzsignfoldertypeID: 123, fkiLanguageID: 123, sEzsigntemplateDescription: "sEzsigntemplateDescription_example", bEzsigntemplateAdminonly: false)]) // EzsigntemplateCreateObjectV1Request |
// Create a new Ezsigntemplate
ObjectEzsigntemplateAPI.ezsigntemplateCreateObjectV1(ezsigntemplateCreateObjectV1Request: ezsigntemplateCreateObjectV1Request) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ezsigntemplateCreateObjectV1Request** | [**EzsigntemplateCreateObjectV1Request**](EzsigntemplateCreateObjectV1Request.md) | |
### Return type
[**EzsigntemplateCreateObjectV1Response**](EzsigntemplateCreateObjectV1Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateDeleteObjectV1**
```swift
open class func ezsigntemplateDeleteObjectV1(pkiEzsigntemplateID: Int, completion: @escaping (_ data: EzsigntemplateDeleteObjectV1Response?, _ error: Error?) -> Void)
```
Delete an existing Ezsigntemplate
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiEzsigntemplateID = 987 // Int |
// Delete an existing Ezsigntemplate
ObjectEzsigntemplateAPI.ezsigntemplateDeleteObjectV1(pkiEzsigntemplateID: pkiEzsigntemplateID) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pkiEzsigntemplateID** | **Int** | |
### Return type
[**EzsigntemplateDeleteObjectV1Response**](EzsigntemplateDeleteObjectV1Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateEditObjectV1**
```swift
open class func ezsigntemplateEditObjectV1(pkiEzsigntemplateID: Int, ezsigntemplateEditObjectV1Request: EzsigntemplateEditObjectV1Request, completion: @escaping (_ data: EzsigntemplateEditObjectV1Response?, _ error: Error?) -> Void)
```
Edit an existing Ezsigntemplate
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiEzsigntemplateID = 987 // Int |
let ezsigntemplateEditObjectV1Request = ezsigntemplate-editObject-v1-Request(objEzsigntemplate: ezsigntemplate-RequestCompound(pkiEzsigntemplateID: 123, fkiEzsignfoldertypeID: 123, fkiLanguageID: 123, sEzsigntemplateDescription: "sEzsigntemplateDescription_example", bEzsigntemplateAdminonly: false)) // EzsigntemplateEditObjectV1Request |
// Edit an existing Ezsigntemplate
ObjectEzsigntemplateAPI.ezsigntemplateEditObjectV1(pkiEzsigntemplateID: pkiEzsigntemplateID, ezsigntemplateEditObjectV1Request: ezsigntemplateEditObjectV1Request) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pkiEzsigntemplateID** | **Int** | |
**ezsigntemplateEditObjectV1Request** | [**EzsigntemplateEditObjectV1Request**](EzsigntemplateEditObjectV1Request.md) | |
### Return type
[**EzsigntemplateEditObjectV1Response**](EzsigntemplateEditObjectV1Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateGetAutocompleteV2**
```swift
open class func ezsigntemplateGetAutocompleteV2(sSelector: SSelector_ezsigntemplateGetAutocompleteV2, eFilterActive: EFilterActive_ezsigntemplateGetAutocompleteV2? = nil, sQuery: String? = nil, acceptLanguage: HeaderAcceptLanguage? = nil, completion: @escaping (_ data: EzsigntemplateGetAutocompleteV2Response?, _ error: Error?) -> Void)
```
Retrieve Ezsigntemplates and IDs
Get the list of Ezsigntemplate to be used in a dropdown or autocomplete control.
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let sSelector = "sSelector_example" // String | The type of Ezsigntemplates to return
let eFilterActive = "eFilterActive_example" // String | Specify which results we want to display. (optional) (default to .active)
let sQuery = "sQuery_example" // String | Allow to filter the returned results (optional)
let acceptLanguage = Header-Accept-Language() // HeaderAcceptLanguage | (optional)
// Retrieve Ezsigntemplates and IDs
ObjectEzsigntemplateAPI.ezsigntemplateGetAutocompleteV2(sSelector: sSelector, eFilterActive: eFilterActive, sQuery: sQuery, acceptLanguage: acceptLanguage) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sSelector** | **String** | The type of Ezsigntemplates to return |
**eFilterActive** | **String** | Specify which results we want to display. | [optional] [default to .active]
**sQuery** | **String** | Allow to filter the returned results | [optional]
**acceptLanguage** | [**HeaderAcceptLanguage**](.md) | | [optional]
### Return type
[**EzsigntemplateGetAutocompleteV2Response**](EzsigntemplateGetAutocompleteV2Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateGetListV1**
```swift
open class func ezsigntemplateGetListV1(eOrderBy: EOrderBy_ezsigntemplateGetListV1? = nil, iRowMax: Int? = nil, iRowOffset: Int? = nil, acceptLanguage: HeaderAcceptLanguage? = nil, sFilter: String? = nil, completion: @escaping (_ data: EzsigntemplateGetListV1Response?, _ error: Error?) -> Void)
```
Retrieve Ezsigntemplate list
Enum values that can be filtered in query parameter *sFilter*: | Variable | Valid values | |---|---| | eEzsigntemplateType | Company
Team
User
Usergroup |
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let eOrderBy = "eOrderBy_example" // String | Specify how you want the results to be sorted (optional)
let iRowMax = 987 // Int | (optional) (default to 10000)
let iRowOffset = 987 // Int | (optional) (default to 0)
let acceptLanguage = Header-Accept-Language() // HeaderAcceptLanguage | (optional)
let sFilter = "sFilter_example" // String | (optional)
// Retrieve Ezsigntemplate list
ObjectEzsigntemplateAPI.ezsigntemplateGetListV1(eOrderBy: eOrderBy, iRowMax: iRowMax, iRowOffset: iRowOffset, acceptLanguage: acceptLanguage, sFilter: sFilter) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**eOrderBy** | **String** | Specify how you want the results to be sorted | [optional]
**iRowMax** | **Int** | | [optional] [default to 10000]
**iRowOffset** | **Int** | | [optional] [default to 0]
**acceptLanguage** | [**HeaderAcceptLanguage**](.md) | | [optional]
**sFilter** | **String** | | [optional]
### Return type
[**EzsigntemplateGetListV1Response**](EzsigntemplateGetListV1Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateGetObjectV1**
```swift
open class func ezsigntemplateGetObjectV1(pkiEzsigntemplateID: Int, completion: @escaping (_ data: EzsigntemplateGetObjectV1Response?, _ error: Error?) -> Void)
```
Retrieve an existing Ezsigntemplate
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiEzsigntemplateID = 987 // Int |
// Retrieve an existing Ezsigntemplate
ObjectEzsigntemplateAPI.ezsigntemplateGetObjectV1(pkiEzsigntemplateID: pkiEzsigntemplateID) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pkiEzsigntemplateID** | **Int** | |
### Return type
[**EzsigntemplateGetObjectV1Response**](EzsigntemplateGetObjectV1Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **ezsigntemplateGetObjectV2**
```swift
open class func ezsigntemplateGetObjectV2(pkiEzsigntemplateID: Int, completion: @escaping (_ data: EzsigntemplateGetObjectV2Response?, _ error: Error?) -> Void)
```
Retrieve an existing Ezsigntemplate
### Example
```swift
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let pkiEzsigntemplateID = 987 // Int |
// Retrieve an existing Ezsigntemplate
ObjectEzsigntemplateAPI.ezsigntemplateGetObjectV2(pkiEzsigntemplateID: pkiEzsigntemplateID) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pkiEzsigntemplateID** | **Int** | |
### Return type
[**EzsigntemplateGetObjectV2Response**](EzsigntemplateGetObjectV2Response.md)
### Authorization
[Authorization](../README.md#Authorization)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)