DocuSign icon

DocuSign

Interact with the DocuSign eSignature REST API v2.1 — complete enterprise coverage

Actions341

Template Document Field → Create

AI-generated

Summary

Create one or more document fields for a specified document within a DocuSign template.

Inputs

  • Authentication — Choose the authentication method: OAuth2 or JWT (Service Integration). Defaults to OAuth2.
  • Category — Select the DocuSign API category to work with. Defaults to "Envelopes" but for this operation, the focus is on Template Document Field under "Templates."
  • Account ID (required) — The globally unique identifier (GUID) of the DocuSign account to operate on.
  • Template ID (required) — The GUID of the DocuSign template containing the document to which fields are added.
  • Document ID (required) — The numeric or special identifier of the document within the template. Use numeric IDs or special strings like "combined", "archive", or "certificate" as applicable.
  • Document Fields (required) — A collection of fields, each with a required name and optional value, to add to the specified document within the template.

Output shape

An object representing the response from DocuSign's API for the creation of document fields on the specified template document.

Multiple document fields can be created in a single request by including multiple entries in the 'Document Fields' collection. The operation requires valid DocuSign authentication and an existing template and document identified by their respective IDs.

Examples

Example 1: Add two custom fields to document "1" in template with ID "abc123" for account ID "def456".

Authentication via OAuth2; Category set to "Templates"; Account ID provided as "def456"; Template ID as "abc123"; Document ID as "1"; Document Fields containing two fields with specified names and values.

Links

Discussion