Create a Document Based on a Template
Monday, July 30, 2018 at 08:54amHello,
How I can create a document from existing template I have?
I have put some text fields like signer first name, last name and country, how I can access these fields and pass them while create a document based on a template?
Thanks
Reply to: Create a Document Based on a Template
Monday, July 30, 2018 at 09:58amPUT /api/packages/{[packageId}/documents/{documentId}/approvals/{approvalId}and for the request payload, you can simply use a GET method with same API above to get the response payload, fill in "value" attribute with your values for your fields and use this payload for your request. And BTW, the text fields are editable, which means your signers can change it during signing ceremony. If you want to embed these information directly into the document, you can use a Field Injection feature.Reply to: Create a Document Based on a Template
Monday, July 30, 2018 at 10:28amReply to: Create a Document Based on a Template
Monday, July 30, 2018 at 10:50amPOST /api/packages/{templateID}/clone payload: { "name":"Package created from template through REST API", "status":"SENT", "roles":[ { "id":"PlaceholderId1", "type":"SIGNER", "signers":[ { "id":"PlaceholderId1", "firstName":"1.firstname", "lastName":"1.lastname", "email":"[email protected]" } ], "name":"PlaceholderId1" } ], "documents":[ { "id":"document 1 ID", "approvals":[ { "id":"15q7lAvEZscW", "role":"PlaceholderId1", "fields":[ { "id":"field 1 id", "value":"new value" }, { "id":"field 2 id", "value":"new value" }, { "id":"field 3 id", "value":"new value" } ] } ] } ] }In the similar JSON structure, you will be able to update all your text fields in one call. Duo