Skip to content

createTemplate

POST
Use dark colors for code blocksCopy
1
/{orgId}/{itemId}/templates/{templateType}
Create a new template

Create a new template. The adminBasic or adminAdvanced privilege is required.

Request:

ParameterDescriptionData Type
templateTypeRequired. 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:

ParameterDescriptionData Type
templateIdOptional. The ID of the new template to be defined.String
templateNameRequired. The name of the new template. Case sensitive.String
templateDetailsRequired. Information to be stored in the template.String

Query parameters

NameTypeRequired
tokenstring¦null

Body parameters

Supported content types: application/json

Type: Template

The template to be created

NameTypeRequired
templateIdstring¦null
templateNamestring
templateDetailsstring

Path parameters

NameTypeRequired
templateTypestring
orgIdstring
itemIdstring

Response status

StatusMeaningDescriptionSchema
200OK

success

inline
500Internal Server Error

error

WorkflowJsonExceptionDTO

Response details

Status Code 200

CreateTemplateResponse

NameTypeRequiredDescription
templateIdstring

Examples

Request

Use dark colors for code blocksCopy
1
2
3
4
5
# 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

Use dark colors for code blocksCopy
1
2
3
{
  "templateId": "string"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.