Email Template Web Services
Universal Controller supports the following RESTful-based web services for Email Template operations, which are listed alphabetically on this page.
- Create an Email Template
- Delete an Email Template
- List Email Templates
- Modify an Email Template
- Read an Email Template
Formatting specifications for each web service, including details about property requirements, are provided.
Create an Email Template
Description | |
|---|---|
URI | http://host_name/uc/resources/emailtemplate |
HTTP Method | POST |
Description | Creates an Email Template. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Create an Email Template Example Request, below. |
Example Response |
|
Email Template Properties | See Email Template Properties, below. |
Create an Email Template: Example Request
- JSON
- XML
JSON Request
{
"bcc": null,
"body": "This is the body text.",
"cc": null,
"connection": "QA #1",
"description": null,
"opswiseGroups": null,
"replyTo": null,
"subject": "SAP Task email",
"sysId": "55b5d2a6176e4c499cbd43b0d4cc6515",
"templateName": "SAP Task email template",
"to": "doc@stonebranch.com"
}
XML Request
<emailTemplate retainSysIds="true">
<bcc />
<body>This is the body text.</body>
<cc />
<connection>QA #1</connection>
<description />
<opswiseGroups />
<replyTo />
<subject>SAP Task email</subject>
<sysId>55b5d2a6176e4c499cbd43b0d4cc6515</sysId>
<templateName>SAP Task email template</templateName>
<to>doc@stonebranch.com</to>
</emailTemplate>
Email Template Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| BCC | Email address of the party being sent a blind (hidden) copy of the email, if any. | Use commas to separate multiple recipients. | Y |
| Body | Text of the email message. | Y | |
| CC | Email address of the party being sent a copy of the email, if any. | Use commas to separate multiple recipients. | Y |
| Email Connection | Connection used for the Email Template. | Y | |
| Description | Description of this record. | N | |
| n/a | Universal Controller release that the record was exported from. | read only | N |
| n/a | Record table information. | read only | N |
| Member of Business Services | Business Services that this record belongs to. | N | |
| Reply-To | Email address of the sender. | Use commas to separate multiple recipients. | N |
| n/a | Specification for whether or not the Create a Webhook web service will persist the sysId property.
info In XML web services, | Valid values: true/false (default is true). | N |
| Subject | Subject line of the email. | N | |
| n/a | System ID field in the database for this Email Template record. | Persisted only if retainSysIds is set to true. | N |
| Template Name | Name used within the Controller to identify this resource. | Maximum = 40 alphanumerics. | Y |
| To | Email address of the recipient. | Use commas to separate multiple recipients. | Y |
Delete an Email Template
Description | |
|---|---|
URI | http://host_name/uc/resources/emailtemplate |
HTTP Method | DELETE |
Description | Deletes an Email Template. |
URI Parameters | See Delete an Email Template URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/emailtemplate?templatename=Test4 |
Example Response |
|
Delete an Email Template: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this Email Template. | String; URI parameter. | Y |
|
| Name used within the Controller to identify this Email Template. | String; URI parameter. | Y |
|
List Email Templates
Description | |
|---|---|
URI | http://host_name/uc/resources/emailtemplate/list |
HTTP Method | GET |
Description | Retrieves information on all Email Templates. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See List Email Templates Example Response, below. |
Email Template Properties |
List Email Templates: Example Response
- JSON
- XML
JSON Response
[ {
"bcc": null,
"body": "This is the body text.",
"cc": null,
"connection": "QA #1",
"description": null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_email_template",
"opswiseGroups": null,
"replyTo": null,
"subject": "SAP Task email",
"sysId": "55b5d2a6176e4c499cbd43b0d4cc6515",
"templateName": "SAP Task email template",
"to": "doc@stonebranch.com",
"version": 7
}
{
"bcc": null,
"body": "This is the body text.",
"cc": null,
"connection": "QA #2",
"description": null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_email_template",
"opswiseGroups": null,
"replyTo": null,
"subject": "Email Task email",
"sysId": "62701879a6264107bb757a952bcc65cc",
"templateName": "Email Task email template",
"to": "doc@stonebranch.com",
"version": 2
}
]
XML Response
<emailTemplates>
<emailTemplate exportReleaseLevel="7.2.0.0" exportTable="ops_email_template" version="7">
<bcc />
<body>This is the body text.</body>
<cc />
<connection>QA #1</connection>
<description />
<opswiseGroups />
<replyTo />
<subject>SAP Task email</subject>
<sysId>55b5d2a6176e4c499cbd43b0d4cc6515</sysId>
<templateName>SAP Task email template</templateName>
<to>doc@stonebranch.com</to>
</emailTemplate>
<emailTemplate exportReleaseLevel="7.2.0.0" exportTable="ops_email_template" version="2">
<bcc />
<body>This is the body text.</body>
<cc />
<connection>QA #2</connection>
<description />
<opswiseGroups />
<replyTo />
<subject>Email Task email</subject>
<sysId>62701879a6264107bb757a952bcc65cc</sysId>
<templateName>Email Task email template</templateName>
<to>doc@stonebranch.com</to>
</emailTemplate>
<emailTemplates>
Modify an Email Template
Description | |
|---|---|
URI | http://host_name/uc/resources/emailtemplate |
HTTP Method | PUT |
Description | Modifies the Email Template specified by the |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Modify an Email Template Example Request, below. |
Email Template Properties | |
Example Response |
|
Modify an Email Template: Example Request
- JSON
- XML
JSON Request
{
"bcc": null,
"body": "This is the body text.",
"cc": null,
"connection": "QA #1",
"description": null,
"opswiseGroups": null,
"replyTo": null,
"subject": "SAP Task email",
"sysId": "55b5d2a6176e4c499cbd43b0d4cc6515",
"templateName": "SAP Task email template",
"to": "doc@stonebranch.com"
}
XML Request
<emailTemplate>
<bcc />
<body>This is the body text.</body>
<cc />
<connection>QA #1</connection>
<description />
<opswiseGroups />
<replyTo />
<subject>SAP Task email</subject>
<sysId>55b5d2a6176e4c499cbd43b0d4cc6515</sysId>
<templateName>SAP Task email template</templateName>
<to>doc@stonebranch.com</to>
</emailTemplate>
Read an Email Template
URI | http://host_name/uc/resources/emailtemplate |
HTTP Method | GET |
Description | Retrieves information on a specific Email Template. |
URI Parameters | See Read an Email Template URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/emailtemplate?templatename=Test4 |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See Read an Email Template Example Response, below. |
Email Template Properties |
Read an Email Template: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this Email Template. | String; URI parameter. | Y |
|
| Name used within the Controller to identify this Email Template. | String; URI parameter. | Y |
|
Read an Email Template: Example Response
- JSON
- XML
JSON Response
{
"bcc": null,
"body": "This is the body text.",
"cc": null,
"connection": "QA #1",
"description": null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_email_template",
"opswiseGroups": null,
"replyTo": null,
"subject": "SAP Task email",
"sysId": "55b5d2a6176e4c499cbd43b0d4cc6515",
"templateName": "SAP Task email template",
"to": "doc@stonebranch.com",
"version": 1
}
XML Response
<emailTemplate exportReleaseLevel="7.2.0.0" exportTable="ops_email_template" retainSysIds="true" version="1">
<bcc />
<body>This is the body text.</body>
<cc />
<connection>QA #1</connection>
<description />
<opswiseGroups />
<replyTo />
<subject>SAP Task email</subject>
<sysId>55b5d2a6176e4c499cbd43b0d4cc6515</sysId>
<templateName>SAP Task email template</templateName>
<to>doc@stonebranch.com</to>
</emailTemplate>