Create Automated Smart Template
ApiScope: manage.smarttemplate.write
API Scope Level: DealerScope
Path Parameters
dealerUUID string required
application/json
Request Body required
typeDesc string
typeName string
defaultTemplate string
templateType string
Possible values: [TEXT
, EMAIL
]
isSmartTemplate boolean
resourceUuid string
inSelfAdmin boolean
mandatoryTCPAFooter boolean
isFreemarkerTemplate boolean
Responses
- 200
- 400
- 401
- 403
- 500
OK
application/json
application/x-protobuf
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
uuid string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string",
"uuid": "string"
}
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
uuid string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string",
"uuid": "string"
}
Bad Request
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Unauthorized
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Forbidden
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
Internal Server Error
application/json
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
apiRequestId string
{
"errors": [
{
"errorCode": 0,
"errorTitle": "string",
"errorMessage": "string"
}
],
"warnings": [
{
"warningCode": 0,
"warningTitle": "string",
"warningMessage": "string"
}
],
"apiRequestId": "string"
}
POST /v2/smartTemplatesdealers/:dealerUUID
Authorization
name: basicAuthtype: httpscheme: basic
Request
Request
curl / cURL
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
python / requests
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
go / native
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
nodejs / axios
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
ruby / Net::HTTP
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
csharp / RestSharp
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
php / cURL
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
java / OkHttp
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'
powershell / RestMethod
curl -L -X POST '/manage/v2/smartTemplatesdealers/:dealerUUID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"typeDesc": "string",
"typeName": "string",
"defaultTemplate": "string",
"templateType": "TEXT",
"isSmartTemplate": true,
"resourceUuid": "string",
"inSelfAdmin": true,
"mandatoryTCPAFooter": true,
"isFreemarkerTemplate": true
}'