| GET,POST,DELETE | /{Workspace}/DocumentTemplate/{Type}/Email |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | path | string | No | |
| Workspace | path | string | No | |
| Engine | body | EmailOutputEngine | No | |
| Format | body | EmailOutputFormat | No | |
| PdfTemplate | body | string | No | |
| BodyTemplate | body | string | No | |
| SubjectTemplate | body | string | No | |
| HeaderTemplate | body | string | No | |
| FooterTemplate | body | string | No | |
| PageSize | body | string | No | |
| Orientation | body | string | No | |
| Margins | body | string | No |
| DefaultHtml | |
| DefaultPdf | |
| Custom | |
| Standard |
| Embed | |
| AttachPdf |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/DocumentTemplate/{Type}/Email HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Type":"String","Workspace":"String","Engine":"DefaultHtml","Format":"Embed","PdfTemplate":"String","BodyTemplate":"String","SubjectTemplate":"String","HeaderTemplate":"String","FooterTemplate":"String","PageSize":"String","Orientation":"String","Margins":"String"}