Skip to navigation

TemplateDocuments Resource

View as Markdown

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.

Methods supported

MethodDescription
deleteDEL /restapi/v2/accounts/{accountId}/templates/{templateId}/documents
Deletes documents from a template.
getGET /restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}
Gets PDF documents from a template.
listGET /restapi/v2/accounts/{accountId}/templates/{templateId}/documents
Gets a list of documents associated with a template.
updatePUT /restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}
Adds a document to a template document.
updateListPUT /restapi/v2/accounts/{accountId}/templates/{templateId}/documents
Adds documents to a template document.

TemplateDocuments properties

PropertyTypeDescription
templateDocumentsarray
templateIdstringThe unique identifier of the template. If this is not provided, DocuSign will generate a value.