Create a new template
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 |
Body parameter
{
"templateId": "string",
"templateName": "string",
"templateDetails": "string"
}
Query parameters
Name | Type | Required |
---|---|---|
|
|
Path parameters
Name | Type | Required |
---|---|---|
|
| |
|
| |
|
|
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/templates/{templateType} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Response
200 Response
{
"templateId": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
| success | Inline | |
| error |
Response details
Status Code 200
CreateTemplateResponse
Name | Type | Required |
---|---|---|
|
|