__INITIALS__
Adds templates to a document in the specified envelope.
POST /v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates
Parameter Name | Value | Description |
---|---|---|
Path Parameters | ||
accountId | string | The external account number (int) or account ID GUID. |
documentId | string | The |
envelopeId | string | The envelope's GUID. Example: |
Code | Description | Reference |
---|---|---|
201 | Successful response. | documentTemplateList |
400 | Error encountered. | errorDetails |
documentEndPage | string | |
documentId | string | Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. |
documentStartPage | string | |
errorDetails | errorDetails | This object describes errors that occur. It is only valid for responses and ignored in requests. |
templateId | string | The unique identifier of the template. If this is not provided, DocuSign generates an error and the call fails. |
documentTemplates | [documentTemplate] |
This object describes errors that occur. It is only valid for responses and ignored in requests. | ||
errorCode | string | The code associated with the error condition. |
message | string | A brief message describing the error condition. |
{
"documentTemplates": [
{
"documentId": "sample string 1",
"templateId": "sample string 2",
"documentStartPage": "sample string 3",
"documentEndPage": "sample string 4"
}
]
}
{
"documentTemplates": [
{
"documentId": "sample string 1",
"templateId": "sample string 2",
"documentStartPage": "sample string 3",
"documentEndPage": "sample string 4",
"errorDetails": {
"errorCode": "sample string 1",
"message": "sample string 2"
}
}
]
}
<documentTemplates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
<documentTemplates>
<documentTemplate>
<documentEndPage>sample string 4</documentEndPage>
<documentId>sample string 1</documentId>
<documentStartPage>sample string 3</documentStartPage>
<templateId>sample string 2</templateId>
</documentTemplate>
</documentTemplates>
</documentTemplates>
<documentTemplates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
<documentTemplates>
<documentTemplate>
<documentEndPage>sample string 4</documentEndPage>
<documentId>sample string 1</documentId>
<documentStartPage>sample string 3</documentStartPage>
<errorDetails>
<errorCode>sample string 1</errorCode>
<message>sample string 2</message>
</errorDetails>
<templateId>sample string 2</templateId>
</documentTemplate>
</documentTemplates>
</documentTemplates>