POST
/{orgId}/{itemId}/templates/{templateType}Create a new template. The adminBasic or adminAdvanced privilege is required.
Request:
| Parameter | Description | Data Type |
|---|---|---|
| templateType | Required. The type of template you will create. Create an email template by entering 'email', a Web Request Template by entering 'webRequest', or a Step Template by entering 'step'. Or, enter your own value to define a custom template. | String |
Body:
| Parameter | Description | Data Type |
|---|---|---|
| templateId | Optional. The ID of the new template to be defined. | String |
| templateName | Required. The name of the new template. Case sensitive. | String |
| templateDetails | Required. Information to be stored in the template. | String |
Query parameters
| Name | Type | Required |
|---|---|---|
token | string¦null |
Body parameters
Supported content types: application/json
Type: Template
The template to be created
| Name | Type | Required |
|---|---|---|
template | string¦null | |
template | string | |
template | string |
Path parameters
| Name | Type | Required |
|---|---|---|
template | string | |
org | string | |
item | string |
Response status
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | success | inline |
| 500 | Internal Server Error | error | WorkflowJsonExceptionDTO |
Response details
Status Code 200
CreateTemplateResponse
| Name | Type | Required | Description |
|---|---|---|---|
template | string |
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/templates/{templateType} \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{"templateId":"string","templateName":"string","templateDetails":"string"}'Response
{
"templateId": "string"
}