Views:

Email Templates are associated with a particular Brillium Workspace. The settings, subject, and body text of an outgoing Brillium email are applicable when associated with an assessment.

Email Template Object

Object Properties

Property        TypeDescription
Keys
IdIntegerThe Id of the Email template.
AccountIdIntegerThe unique Workspace ID for the associated Email Template
Scalar Properties
BodyStringThe email template body
DateCreatedDateThe created date
DateModifiedDateThe last modified date
FormatStringThe template format; Html, PlainText
FromEmailStringThe email "From address" assigned
FromNameStringThe from name assigned to the template
IsSharedBooleanWhether or not the Template is shared
NameStringThe template name
ReplyToIntegerThe "Reply to" email address assigned
SubjectStringThe subject assigned
TypeStringThe template type; All, Invite, InviteReminder, ResultsRespondent, ResultsAdministrator, ResultsSupervisor, ConnectInvite , ProctorNotification , ProctorResults.
Navigation Properties
UriStringThe fully qualified URI for this resource.
RelatedUrisString/String DictionaryThe list (dictionary) of related URI’s for this resource.

Email Template API Calls

Retrieving a Single Email Template

The following API call will retrieve a single Email Template by Id.

{brillium_base_uri}/api/EmailTemplates/{template_id}

Retrieving all Email Templates for a Brillium tenant

The following API call will retrieve all Email Templates for the Brillium tenant (i.e. mycompany.onlinetests.app).

{brillium_base_uri}/api/EmailTemplates

Sample – HTTP GET

GET https://supersuds.brillium.com/api/EmailTemplates/42

Sample – JSON Response


		{
		  "EmailTemplates": [
			{
			  "Id": 42,
			  "AccountId": "SUPERSUDS",
			  "Type": "Invite",
			  "IsShared": true,
			  "Name": "Assessment Invitation - Rob Shared",
			  "FromEmail": "DONOTREPLY@brillium.com",
			  "FromName": "",
			  "ReplyTo": "",
			  "Format": "PlainText",
			  "Subject": "Assessment Invitation - [ASSESS_NAME]",
			  "Body": "Below you will find the Web address required to sign into the 
				 [ASSESS_NAME] assessment.  In most email software, you will be able to click on    
				 the link provided below to navigate to the sign-on page.  If your email 
				 software does not support this functionality, please enter the link manually 
				 (or copy and paste) into your browser (starting with \"http\").  Once on the 
				 sign-on page, enter the required information and click on the Login 
				 button.\r\n\r\nAssessment Web Address:\r\n[INVITE_URL]\r\n\r\nGood 
				 luck!\r\n\r\nAssessment Administrators\r\n[ACCOUNT_NAME]",
			  "DateCreated": "2011-01-14T14:36:44-05:00",
			  "DateModified": "2011-03-18T14:13:46-04:00",
			  "Uri": "http:\/\/supersuds.brillium.com\/api\/EmailTemplates\/42",
			  "RelatedUris": null
			}
		  ],
		  "Page": 1,
		  "PageSize": 50,
		  "TotalCount": 1,
		  "HasMore": false
		}