import { TemplateCreateDocumentFromTemplateRequest } from "@documenso/sdk-typescript/models/operations";
let value: TemplateCreateDocumentFromTemplateRequest = {
templateId: 5782.1,
recipients: [
{
id: 8027.73,
email: "[email protected]",
},
],
};
Field | Type | Required | Description |
---|---|---|---|
templateId |
number | ✔️ | N/A |
recipients |
operations.TemplateCreateDocumentFromTemplateRecipientRequestBody[] | ✔️ | The information of the recipients to create the document with. |
distributeDocument |
boolean | ➖ | Whether to create the document as pending and distribute it to recipients. |
customDocumentDataId |
string | ➖ | The data ID of an alternative PDF to use when creating the document. If not provided, the PDF attached to the template will be used. |
prefillFields |
operations.PrefillField[] | ➖ | The fields to prefill on the document before sending it out. Useful when you want to create a document from an existing template and pre-fill the fields with specific values. |