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

## Methods supported

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

## TemplateDocuments properties

| Property            | Type   | Description                                                                                             |
| ------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
| `templateDocuments` | array  | An array of document objects that contain information about the documents associated with the template. |
| `templateId`        | string | The ID of the template. If a value is not provided, Docusign generates a value.                         |