I would like to know how to replace a document with composite templates. The template has three documents and defines signer info. Even though I tried to replace only 1st document that fields (tags) are defined as below it doesn’t work well. If sequence number of inlineTemplates is 1 and its number of serverTemplates is 2, 1st document is replaced as expected but the remaining two documents are gone. If each sequence number changes to opposite, three documents defined in the template are remained in envelope and new document is not replaced to 1st document.
As long as I look for info across stackoverview and other sites I didn’t find any solution yet.
{
"compositeTemplates" : [
{
"serverTemplates": [
{
"sequence": "2",
"templateId": "cba8d3ae-3f0e-4329-9c7a-9da0e612f153"
}
],
"inlineTemplates": [
{
"sequence": "1",
"documents": [
{
"documentId": "1",
"name": "1Update.pdf",
"fileExtension" : "pdf",
"transformPdfFields" : "false",
"documentBase64":"<base64 content>
}
],
}
],
}
],
"status": "created"
}