> 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

# TemplateDocumentFields Resource

The TemplateDocumentFields resource provides methods that allow you to manage custom fields on a document.

You can create custom versions of standard fields that combine of field properties, such as font type or size, or a validation setting.

Note: Some advanced features and options are supported only in certain DocuSign plans. Your account plan might not support some options discussed in this help topic. For more information about which options are available for your account, check your account plan or contact your Account Manager.

## Methods supported

| Method                                                                              | Description                                                                                                                                                           |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [create](/docs/esign-rest-api/v2/reference/templates/templatedocumentfields/create) | POST `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields` Creates custom document fields in an existing template document.         |
| [delete](/docs/esign-rest-api/v2/reference/templates/templatedocumentfields/delete) | DEL `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields` Deletes custom document fields from an existing template document.        |
| [list](/docs/esign-rest-api/v2/reference/templates/templatedocumentfields/list)     | GET `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields` Gets the custom document fields for a an existing template document.      |
| [update](/docs/esign-rest-api/v2/reference/templates/templatedocumentfields/update) | PUT `/restapi/v2/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields` Updates existing custom document fields in an existing template document. |

## TemplateDocumentFields properties

| Property         | Type  | Description                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `documentFields` | array | The array of name/value custom data strings to be added to a document. Custom document field information is returned in the status, but otherwise is not used by DocuSign. The array contains the elements:- name - A string that can be a maximum of 50 characters.
- value - A string that can be a maximum of 200 characters.*IMPORTANT*: If you are using xml, the name/value pair is contained in a nameValue element. |