Email Templates
Email Templates API
Create a new email template
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
curl -X POST "http://localhost:18080/api/v1/communications/templates" \ -H "Content-Type: application/json" \ -d '{ "body": "string", "isActive": true, "name": "string", "subject": "string", "tags": [ "string" ], "variables": [ { "name": "string", "required": true, "type": "STRING" } ] }'{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Get all active templates
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/active"[
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Get all template categories
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/categories"[
"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"
}Get templates by category
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/category/string"[
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Download Csv_ Email Template
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/csv-export""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"
}Delete a list of entities by their IDs
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/communications/templates/delete-list?ids=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"
}Dynamic Search_ Email Template
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/dynamic-search"{
"content": [
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string",
"required": true,
"type": "STRING"
}
],
"version": 0
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 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"
}Dynamic Search Post_ Email Template
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
curl -X POST "http://localhost:18080/api/v1/communications/templates/dynamic-search" \ -H "Content-Type: application/json" \ -d '{ "filters": { "property1": null, "property2": null }, "page": 0, "search": [ "string" ], "size": 0, "sort": [ { "ascending": true, "field": "string" } ] }'{
"content": [
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string",
"required": true,
"type": "STRING"
}
],
"version": 0
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 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"
}Find by list of ids in current tenant
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/find"[
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Find all for current tenant
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/find-all"[
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Find a list of entities by their IDs
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/find-list"[
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Find by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/find/string"{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Get page by page number and size with optional sorting based on field to sortBy and direction
In: header
Query Parameters
int32int32"ASC" | "DESC"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/page"{
"content": [
{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"variables": [
{
"defaultValue": "string",
"description": "string",
"name": "string",
"required": true,
"type": "STRING"
}
],
"version": 0
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 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"
}Delete by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/communications/templates/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"
}Update an existing email template
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "http://localhost:18080/api/v1/communications/templates/string" \ -H "Content-Type: application/json" \ -d '{ "body": "string", "isActive": true, "name": "string", "subject": "string", "tags": [ "string" ], "variables": [ { "name": "string", "required": true, "type": "STRING" } ] }'{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Add a comment to an entity
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/communications/templates/string/comment" \ -H "Content-Type: application/json" \ -d '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"
}Duplicate an email template
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/communications/templates/string/duplicate"{
"active": true,
"body": "string",
"category": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"description": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"isActive": true,
"name": "string",
"subject": "string",
"tags": [
"string"
],
"tenantId": "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"
}Preview template with variables
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/communications/templates/string/preview" \ -H "Content-Type: application/json" \ -d '{ "variables": { "property1": null, "property2": null } }'{
"body": "string",
"subject": "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"
}Get version history for a template
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/communications/templates/string/versions"[
{
"property1": null,
"property2": null
}
]{
"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"
}