API ReferenceEmail templates
Create a new email template
AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/communications/templates" \ -H "Content-Type: application/json" \ -d '{ "body": "string", "includeSignature": true, "isActive": true, "isEnabled": true, "name": "string", "reminders": [ { "body": "string", "delayUnit": "HOURS", "delayValue": 0, "id": "string", "isEnabled": true, "subject": "string", "translations": { "property1": { "body": "string", "subject": "string" }, "property2": { "body": "string", "subject": "string" } } } ], "senderMode": "CURRENT_USER", "subject": "string", "tags": [ "string" ], "translations": { "property1": { "body": "string", "subject": "string" }, "property2": { "body": "string", "subject": "string" } }, "variables": [ { "name": "string", "required": true, "type": "STRING" } ] }'{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"enabled": true,
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"fixedSenderAddress": "string",
"id": "string",
"includeSignature": true,
"isActive": true,
"isEnabled": true,
"name": "string",
"number": "string",
"reminders": [
{
"body": "string",
"delayUnit": "HOURS",
"delayValue": 0,
"enabled": true,
"id": "string",
"isEnabled": true,
"sendWindow": {
"daysOfWeek": [
"MONDAY"
],
"endHour": 0,
"endMinute": 0,
"startHour": 0,
"startMinute": 0
},
"subject": "string",
"translations": {
"property1": {
"body": "string",
"subject": "string"
},
"property2": {
"body": "string",
"subject": "string"
}
}
}
],
"senderMode": "CURRENT_USER",
"subject": "string",
"tags": [
"string"
],
"templateType": "string",
"tenantId": "string",
"translations": {
"property1": {
"body": "string",
"subject": "string"
},
"property2": {
"body": "string",
"subject": "string"
}
},
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string",
"required": true,
"type": "STRING"
}
],
"version": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}