{"api":"esign_rest","category":"reference"}

TemplateDocuments Resource

The TemplateDocuments resource provides methods that manage documents in a template. You can:

  • add one or more documents to the template
  • retrieve one or more documents from the template
  • delete documents from the template

All of the methods in this resource operate on on an existing template. Before you can add documents to a template, you must first create it with the Templates: create method.

MethodDescription
list
GET /v2/accounts/{accountId}/templates/{templateId}/documents

Retrieves a list of documents associated with the specified template.

updateList
PUT /v2/accounts/{accountId}/templates/{templateId}/documents

Adds one or more documents to an existing template document.

delete
DELETE /v2/accounts/{accountId}/templates/{templateId}/documents

Deletes one or more documents from an existing template.

get
GET /v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}

Retrieves one or more PDF documents from the specified template.

You can specify the ID of the document to retrieve or can specify combined to retrieve all documents in the template as one pdf.

update
PUT /v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}

Adds the specified document to an existing template document.