Details
Generates a document of specified type (Plain Text, HTML, PDF, or in JSON format) based on the provided document template and additional input parameters.
Supported starting with Enterprise Service Management Platform v.26.1
Request
URL
POST https://{server_name}/m42Services/api/documenttemplate/{documentTemplateObjectId}/generateHeaders
For a list of available HTTP request headers see Web Services: REST API integration.
POST body
| Element | Description | Type | Required |
|---|---|---|---|
Type |
|
Required | |
Lcid |
Defienes the language, e.g.:
If not specified, is taken from the current process. |
Optional | |
Parameters |
should be specified only if the Document Template requires input parameters | Optional | |
SkinId |
if not specified, the default Document Template skin will be applied. See also, Administration application → Services & Processes → Document Template → Skins. |
Optional | |
UserTimeZone |
Data and time format. If not specified, the default value is set. | Optional |
Sample Request
https://{server_name}/m42Services/api/documenttemplate/91a74304-5821-e811-a882-f079595b3ec7/generate
{
"Type": 1,
"Lcid": 1033,
"Parameters": {
"SPSActivityClassBase": "8968de08-b88e-c76e-fb19-27141c06b13f"
},
"SkinId": "d086c906-d5c7-ec11-339d-9828a6146d72",
"UserTimeZone": "W. Europe Standard Time"
}