TAG LINE
TAG LINE
SMALL TITLE

Email Template

(API Version v9)


What can you do with EmailTemplate?


Properties

Property Details
identity
READ-ONLY
"identity": 5
Type: Number
This is the unique numeric identifier for the EmailTemplate
ownerId
READ-ONLY
"ownerId": 12
Type: Number
Unique identifier for the associated Owner object.
ownerName
READ-ONLY
"ownerName": "Sample Name"
Type: String
The name of the object associated with the ownerId property.
name
"name": "Hello World"
Type: String
emailTemplateTypeId
"emailTemplateTypeId": 26
Type: Number
Unique identifier for the associated EmailTemplateType object.
emailTemplateTypeName
"emailTemplateTypeName": "Sample Name"
Type: String
The name of the object associated with the emailTemplateTypeId property.
description
"description": "Hello World"
Type: String
isActive
"isActive": true
Type: Boolean
subject
"subject": "Hello World"
Type: String
fromName
"fromName": "Hello World"
Type: String
fromEmailAddress
"fromEmailAddress": "Hello World"
Type: String
localeId
"localeId": 5
Type: Number
Unique identifier for the associated Locale object.
localeName
"localeName": "Sample Name"
Type: String
The name of the object associated with the localeId property.
eventRegistrationId
"eventRegistrationId": 9
Type: Number
Unique identifier for the associated EventRegistration object.
eventRegistrationName
"eventRegistrationName": "Sample Name"
Type: String
The name of the object associated with the eventRegistrationId property.
tokenContextTypeId
"tokenContextTypeId": 20
Type: Number
Unique identifier for the associated TokenContextType object.
tokenContextTypeName
"tokenContextTypeName": "Sample Name"
Type: String
The name of the object associated with the tokenContextTypeId property.
storageLocationId
"storageLocationId": 8
Type: Number
Unique identifier for the associated StorageLocation object.
storageLocationName
"storageLocationName": "Sample Name"
Type: String
The name of the object associated with the storageLocationId property.
documentIdentifier
"documentIdentifier": "Hello World"
Type: String
fileName
"fileName": "Hello World"
Type: String
created
READ-ONLY
"created": "2021-04-26T15:25:27.587Z"
Type: Date
This is a system generated date when the record was created. Date and time values are specified in the ISO 8601 format.
updated
READ-ONLY
"updated": "2021-04-26T15:25:27.587Z"
Type: Date
The date time stamp when this record was updated. Date and time values are specified in the ISO 8601 format.

DataFlow PATCH objects:


End Points

DELETEEmailTemplate/{id}
Delete an instance of the EmailTemplate object. Upon successful delete, this API will return a record of all of the related objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system.
{id}Unique identifier for the EmailTemplate object.
Delete an instance of the EmailTemplate object.
DELETE EmailTemplate/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "delete",
    "results": {
        "totalCount": 4,
        "items": [
            {
                "identity": 1,
                "action": "deleted",
                "dtoTypeKey": "emailTemplate"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETEmailTemplate/
Retrieve all of the EmailTemplate objects.
Retrieve all of the EmailTemplate objects.
GET EmailTemplate/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 8,
            "ownerName": "Sample Text Data",
            "name": "Sample Text Data",
            "emailTemplateTypeId": 22,
            "emailTemplateTypeName": "Sample Text Data",
            "description": "Sample Text Data",
            "isActive": true,
            "subject": "Sample Text Data",
            "fromName": "Sample Text Data",
            "fromEmailAddress": "Sample Text Data",
            "localeId": 21,
            "localeName": "Sample Text Data",
            "eventRegistrationId": 17,
            "eventRegistrationName": "Sample Text Data",
            "tokenContextTypeId": 18,
            "tokenContextTypeName": "Sample Text Data",
            "storageLocationId": 14,
            "storageLocationName": "Sample Text Data",
            "documentIdentifier": "Sample Text Data",
            "fileName": "Sample Text Data",
            "created": "2021-04-26T15:25:27.587Z",
            "updated": "2021-04-26T15:25:27.587Z"
        }
    ]
}
GETEmailTemplate/Paged
Retrieve all of the EmailTemplate objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints.
Retrieve all of the EmailTemplate objects in a paged fashion.
GET EmailTemplate/Paged
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 4,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "emailTemplateTypeId": 8,
                "emailTemplateTypeName": "Sample Text Data",
                "description": "Sample Text Data",
                "isActive": true,
                "subject": "Sample Text Data",
                "fromName": "Sample Text Data",
                "fromEmailAddress": "Sample Text Data",
                "localeId": 6,
                "localeName": "Sample Text Data",
                "eventRegistrationId": 0,
                "eventRegistrationName": "Sample Text Data",
                "tokenContextTypeId": 9,
                "tokenContextTypeName": "Sample Text Data",
                "storageLocationId": 15,
                "storageLocationName": "Sample Text Data",
                "documentIdentifier": "Sample Text Data",
                "fileName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}
GETEmailTemplate/{id}
Retrieve an instance of the EmailTemplate object by its ID.
{id}Unique identifier for the EmailTemplate object.
Retrieve an instance of the EmailTemplate object by its ID.
GET EmailTemplate/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 0,
        "ownerName": "Sample Text Data",
        "name": "Sample Text Data",
        "emailTemplateTypeId": 24,
        "emailTemplateTypeName": "Sample Text Data",
        "description": "Sample Text Data",
        "isActive": true,
        "subject": "Sample Text Data",
        "fromName": "Sample Text Data",
        "fromEmailAddress": "Sample Text Data",
        "localeId": 6,
        "localeName": "Sample Text Data",
        "eventRegistrationId": 6,
        "eventRegistrationName": "Sample Text Data",
        "tokenContextTypeId": 16,
        "tokenContextTypeName": "Sample Text Data",
        "storageLocationId": 17,
        "storageLocationName": "Sample Text Data",
        "documentIdentifier": "Sample Text Data",
        "fileName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "updated": "2021-04-26T15:25:27.587Z"
    }
}
PATCHEmailTemplate/Upload/{id}
Update or Add the EmailTemplate object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array.
{id}Unique identifier for the EmailTemplate object.
Update or Add the EmailTemplate object and optionally make changes to any child objects.
PATCH EmailTemplate/Upload/{id}

{
    "details": {},
    "emailTemplates": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "name": "Sample Text Data",
                "emailTemplateTypeId": 16,
                "description": "Sample Text Data",
                "isActive": true,
                "subject": "Sample Text Data",
                "fromName": "Sample Text Data",
                "fromEmailAddress": "Sample Text Data",
                "localeId": 20,
                "eventRegistrationId": 27,
                "tokenContextTypeId": 24,
                "storageLocationId": 15,
                "documentIdentifier": "Sample Text Data",
                "fileName": "Sample Text Data",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "patch",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "action": "created",
                "dtoTypeKey": "emailTemplate",
                "instance": {
                    "identity": 1,
                    "ownerId": 14,
                    "ownerName": "Sample Text Data",
                    "name": "Sample Text Data",
                    "emailTemplateTypeId": 9,
                    "emailTemplateTypeName": "Sample Text Data",
                    "description": "Sample Text Data",
                    "isActive": true,
                    "subject": "Sample Text Data",
                    "fromName": "Sample Text Data",
                    "fromEmailAddress": "Sample Text Data",
                    "localeId": 11,
                    "localeName": "Sample Text Data",
                    "eventRegistrationId": 1,
                    "eventRegistrationName": "Sample Text Data",
                    "tokenContextTypeId": 8,
                    "tokenContextTypeName": "Sample Text Data",
                    "storageLocationId": 17,
                    "storageLocationName": "Sample Text Data",
                    "documentIdentifier": "Sample Text Data",
                    "fileName": "Sample Text Data",
                    "created": "2021-04-26T15:25:27.587Z",
                    "updated": "2021-04-26T15:25:27.587Z"
                }
            }
        ]
    }
}
POSTEmailTemplate/Upload
Create a new instance of the EmailTemplate object.
Create a new instance of the EmailTemplate object.
POST EmailTemplate/Upload

{
    "name": "Sample Text Data",
    "emailTemplateTypeId": 22,
    "description": "Sample Text Data",
    "isActive": true,
    "subject": "Sample Text Data",
    "fromName": "Sample Text Data",
    "fromEmailAddress": "Sample Text Data",
    "localeId": 27,
    "eventRegistrationId": 7,
    "tokenContextTypeId": 26,
    "storageLocationId": 24,
    "documentIdentifier": "Sample Text Data",
    "fileName": "Sample Text Data",
    "updated": "2021-04-26T15:25:27.587Z"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 22,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "emailTemplateTypeId": 24,
                "emailTemplateTypeName": "Sample Text Data",
                "description": "Sample Text Data",
                "isActive": true,
                "subject": "Sample Text Data",
                "fromName": "Sample Text Data",
                "fromEmailAddress": "Sample Text Data",
                "localeId": 15,
                "localeName": "Sample Text Data",
                "eventRegistrationId": 13,
                "eventRegistrationName": "Sample Text Data",
                "tokenContextTypeId": 12,
                "tokenContextTypeName": "Sample Text Data",
                "storageLocationId": 1,
                "storageLocationName": "Sample Text Data",
                "documentIdentifier": "Sample Text Data",
                "fileName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}
PUTEmailTemplate/Upload/{id}
Update an existing instance of the EmailTemplate object.
Update an existing instance of the EmailTemplate object.
PUT EmailTemplate/Upload/{id}

{
    "identity": 1,
    "name": "Sample Text Data",
    "emailTemplateTypeId": 20,
    "description": "Sample Text Data",
    "isActive": true,
    "subject": "Sample Text Data",
    "fromName": "Sample Text Data",
    "fromEmailAddress": "Sample Text Data",
    "localeId": 22,
    "eventRegistrationId": 16,
    "tokenContextTypeId": 18,
    "storageLocationId": 26,
    "documentIdentifier": "Sample Text Data",
    "fileName": "Sample Text Data",
    "updated": "2021-04-26T15:25:27.587Z"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 18,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "emailTemplateTypeId": 25,
                "emailTemplateTypeName": "Sample Text Data",
                "description": "Sample Text Data",
                "isActive": true,
                "subject": "Sample Text Data",
                "fromName": "Sample Text Data",
                "fromEmailAddress": "Sample Text Data",
                "localeId": 10,
                "localeName": "Sample Text Data",
                "eventRegistrationId": 23,
                "eventRegistrationName": "Sample Text Data",
                "tokenContextTypeId": 7,
                "tokenContextTypeName": "Sample Text Data",
                "storageLocationId": 23,
                "storageLocationName": "Sample Text Data",
                "documentIdentifier": "Sample Text Data",
                "fileName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z"
            }
        ]
    }
}