> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Document Fields

Updates existing custom document fields in an existing envelope document.

<Note>
  External Documentation

  To learn more, visit the [Docusign documentation](https://developers.docusign.com/docs/esign-rest-api/v2/reference/envelopes/envelopedocumentfields/update/).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Document Fields | 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.<br /><br />The array contains the elements:<br />\* name - A string that can be a maximum of 50 characters.<br />\* value - A string that can be a maximum of 200 characters.<br /><br />For example:<br /><pre><code>\[<br />  \{<br />    "name": "fieldName"<br />    "originalValue": "initialItemValue"<br />    "value": "currentItemValue"<br />    "errorDetails": \{<br />      "errorCode": "codeAssociatedWithTheErrorCondition"<br />      "message": "aBriefMessageDescribingTheErrorCondition"<br />    }<br />  }<br />]</code></pre><br />For more information about the `Document Fields` parameter, visit [Docusign API documentation](https://developers.docusign.com/docs/esign-rest-api/v2/reference/envelopes/envelopedocumentfields/update/) |
  | Document ID     | The unique ID of the document within the envelope.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Envelope ID     | The ID of the envelope.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
</div>

## Example Output

```json theme={"dark"}
{
	"documentFields": [
		{
			"name": "<string>",
			"value": "<string>"
		}
	]
}
```

## Workflow Library Example

[Update Document Fields with Docusign and Send Results Via Email](https://library.blinkops.com/workflows/update-document-fields-with-docusign-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-document-fields-with-docusign-and-send-results-via-email/canvas" />
</div>
