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 associated with this resource operate 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.1/accounts/{accountId}/templates/{templateId}/documents
Deletes documents from a template.
getGET /restapi/v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}
Gets PDF documents from a template.
listGET /restapi/v2.1/accounts/{accountId}/templates/{templateId}/documents
Gets a list of documents associated with a template.
updatePUT /restapi/v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}
Updates a template document.
updateListPUT /restapi/v2.1/accounts/{accountId}/templates/{templateId}/documents
Adds documents to a template document.

TemplateDocuments properties

PropertyTypeDescription
templateDocumentsarrayAn array of document objects that contain information about the documents associated with the template.
templateIdstringThe ID of the template. If a value is not provided, Docusign generates a value.