I've created a template in my dev sandbox. In that template I created custom fields and changed the data label to reflect what is in the codebase.
From there, I've done a httpRequest with an envelope, referencing that template id, with "tabs":{"textTabs":[{"tabLabel":"CurrentUnit","value":"Test Unit"}]} as the reference to the custom fields. CurrentUnit is the data label for my template in the dev sandbox. The template isn't being emailed after my httpRequest from my application, but that field isn't getting populated, and I'm thoroughly stumped. Any ideas?
Also, if I do a Get request for tab_definitions, it shows those custom fields that I created.
The request url looks like this: https://dev.docusign.net/restapi/v2/accounts/{accountId}/envelopes The header is just the Bearer auth token and Content-Type
The request body looks like this:
{ "accountId":"{accountId}",
"emailSubject":"Test",
"templateId":"{templateId}",
"templateRoles":[
{
"roleName":"Signer",
"name":"Liam",
"email":"{[email protected]}",
"tabs":{
"textTabs":[{
"tabLabel":"currentUnit",
"value":"Test Unit"
}]}}],
"status":"sent"
}