> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# 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](/docs/esign-rest-api/v2/reference/Templates/Templates/create) method.

## Methods supported

| Method                                                                                 | Description                                                                                                                  |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [delete](/docs/esign-rest-api/v2/reference/templates/templatedocuments/delete)         | DEL `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents` Deletes documents from a template.                   |
| [get](/docs/esign-rest-api/v2/reference/templates/templatedocuments/get)               | GET `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}` Gets PDF documents from a template.     |
| [list](/docs/esign-rest-api/v2/reference/templates/templatedocuments/list)             | GET `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents` Gets a list of documents associated with a template. |
| [update](/docs/esign-rest-api/v2/reference/templates/templatedocuments/update)         | PUT `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}` Adds a document to a template document. |
| [updateList](/docs/esign-rest-api/v2/reference/templates/templatedocuments/updatelist) | PUT `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents` Adds documents to a template document.               |

## TemplateDocuments properties

| Property            | Type   | Description                                                                                     |
| ------------------- | ------ | ----------------------------------------------------------------------------------------------- |
| `templateDocuments` | array  |                                                                                                 |
| `templateId`        | string | The unique identifier of the template. If this is not provided, DocuSign will generate a value. |