Template
Template methods
Static Method Summary
Static Public Methods | ||
public static |
create(data: TemplateCreateParams, originalCallback: function(err: ApiErrorResponse, res: TemplateCreateResponse)) Creates a template by copying an existing unfulfilled and not requested for sign document. |
|
public static |
duplicate(data: TemplateDuplicateParams, callback: function(err: ApiErrorResponse, res: TemplateDuplicateResponse)) Creates a new document by copying a template. |
|
public static |
invite(data: TemplateInviteParams, callback: function(err: ApiErrorResponse, res: TemplateInviteResponse)) Creates an invite to sign a template. |
|
public static |
remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) Removes a specified template from folder |
Static Public Methods
public static create(data: TemplateCreateParams, originalCallback: function(err: ApiErrorResponse, res: TemplateCreateResponse)) source
Creates a template by copying an existing unfulfilled and not requested for sign document.
By default original document is not removed after template creation. To remove original document set removeOriginalDocument
option to true
.
Params:
Name | Type | Attribute | Description |
data | TemplateCreateParams | create template payload |
|
originalCallback | function(err: ApiErrorResponse, res: TemplateCreateResponse) |
|
error first node.js callback |
public static duplicate(data: TemplateDuplicateParams, callback: function(err: ApiErrorResponse, res: TemplateDuplicateResponse)) source
Creates a new document by copying a template. If a name is not supplied then document name will be set to the original template's name by default.
Params:
Name | Type | Attribute | Description |
data | TemplateDuplicateParams | duplicate template payload |
|
callback | function(err: ApiErrorResponse, res: TemplateDuplicateResponse) |
|
error first node.js callback |
public static invite(data: TemplateInviteParams, callback: function(err: ApiErrorResponse, res: TemplateInviteResponse)) source
Creates an invite to sign a template. You can create a simple free form invite(s) or a role-based invite(s). The method copies a template into document and creates an invite using created document.
Params:
Name | Type | Attribute | Description |
data | TemplateInviteParams | create template invite payload |
|
callback | function(err: ApiErrorResponse, res: TemplateInviteResponse) |
|
error first node.js callback |
public static remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) source
Removes a specified template from folder
Params:
Name | Type | Attribute | Description |
data | TemplateRemoveParams | remove template payload |
|
callback | function(err: ApiErrorResponse, res: TemplateRemoveResponse) |
|
error first node.js callback |