In docusign interface, there is an option to change the order of the documents in a template. Is it possible to re-order the documents in a template using REST APIs?
I have a requirement where end-user should be able to a) select the templates b) re-order the documents in selected templates c) Application should form envelope using selected templates and send it.
Both (a) and (c) features are working fine using REST APIs but when it comes to re-ordering the documents within the template, I am unable to find a solution.
This is the JSON request I am using for composite templates:
{"serverTemplates": [
{
"sequence": "1",
"templateId": "'.$template_id.'"
}
],
"inlineTemplates": [
{
"sequence": "2",
"recipients": {
"signers": [
{
"email": "'.$emp_rec['email_id'].'",
"name": "'.$emp_rec['name'].'",
"recipientId": "1",
"roleName": "Employee",
"routingOrder": "1"
}
]
}
}
]
}
Let me know if any more information required.