Reference Source Test
public class | source

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

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:

NameTypeAttributeDescription
data TemplateCreateParams

create template payload

originalCallback function(err: ApiErrorResponse, res: TemplateCreateResponse)
  • optional

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:

NameTypeAttributeDescription
data TemplateDuplicateParams

duplicate template payload

callback function(err: ApiErrorResponse, res: TemplateDuplicateResponse)
  • optional

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:

NameTypeAttributeDescription
data TemplateInviteParams

create template invite payload

callback function(err: ApiErrorResponse, res: TemplateInviteResponse)
  • optional

error first node.js callback

public static remove(data: TemplateRemoveParams, callback: function(err: ApiErrorResponse, res: TemplateRemoveResponse)) source

Removes a specified template from folder

Params:

NameTypeAttributeDescription
data TemplateRemoveParams

remove template payload

callback function(err: ApiErrorResponse, res: TemplateRemoveResponse)
  • optional

error first node.js callback