Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Formatting specifications for each web service, including details about property requirements, are provided.

Anchor
Create an Email Template
Create an Email Template

Create an Email Template


Description

URI

http://host_name/uc/resources/emailtemplate

HTTP Method

POST

Description

Creates an Email Template.

Example URI

http://localhost:8080/uc/resources/emailtemplate

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example Request

See Create an Email Template Example Request 63543589, below.

Example Response

  • Status 200 /OK
    Successfully created the Email Template with sysId {sysId}.
  • Status 400 /Bad Request
    Create Email Template failed. A duplicate value has been detected. Name must be unique.

Email Template Properties

See Email Template Properties 63543589, below.

Anchor
Create an Email Template Example Request
Create an Email Template Example Request

Create an Email Template: Example Request

XML Request

JSON Request


Expand
titleXML 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>



Expand
titleJSON 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"
}


Anchor
Email Template Properties
Email Template Properties

Email Template Properties

Property

UI Field Name

Description

Specifications

Required

Anchor
bcc - ET
bcc - ET
bcc

BCC

Email address of the party being sent a blind (hidden) copy of the email, if any.

Use commas to separate multiple recipients.

Y
(unless cc or to
is specified)

Anchor
body - ET
body - ET
body

Body

Text of the email message.


Y

Anchor
cc - ET
cc - ET
cc

CC

Email address of the party being sent a copy of the email, if any.

Use commas to separate multiple recipients.

Y
(unless bcc or to
is specified)

Anchor
connection - ET
connection - ET
connection

Email Connection

Connection used for the Email Template.


Y

Anchor
description - ET
description - ET
description

Description

Description of this record.


N

Anchor
exportReleaseLevel - ET
exportReleaseLevel - ET
exportReleaseLevel

n/a

Universal Controller release that the record was exported from.

read onlyN

Anchor
exportTable - ET
exportTable - ET
exportTable

n/aRecord table information.read onlyN

Anchor
opswiseGroups - ET
opswiseGroups - ET
opswiseGroups

Member of Business Services

Business Services that this record belongs to.


N

Anchor
replyTo - ET
replyTo - ET
replyTo

Reply-To

Email address of the sender.

Use commas to separate multiple recipients.

N

Anchor
subject - ET
subject - ET
subject

Subject

Subject line of the email.


N

Anchor
sysId - ET
sysId - ET
sysId

n/a

System ID field in the database for this Email Template record.

Persisted only if retainSysIds is set to true.

N

Anchor
templateName - ET
templateName - ET
templateName

Template Name

Name used within the Controller to identify this resource.

Maximum = 40 alphanumerics.

Y

Anchor
to - ET
to - ET
to

To

Email address of the recipient.

Use commas to separate multiple recipients.

Y
(unless cc or bcc
is specified)

Anchor
Delete an Email Template
Delete an Email Template

Delete an Email Template


Description

URI

HTTP Method

DELETE

Description

Deletes an Email Template.

URI Parameters

See Delete an Email Template URI Parameters 63543589, below.

Example URI

http://localhost:8080/uc/resources/emailtemplate?templatename=Test4

Example Response

  • Status 200 /OK
    Email Template deleted successfully.
  • Status 400 /Bad Request
    Mutual exclusion violation. Cannot specify templatename and templateid at the same time.
  • Status 404 /Not Found
    An Email Template with {name/id} "test" does not exist.

Anchor
Delete an Email Template URI Parameters
Delete an Email Template URI Parameters

Delete an Email Template: URI Parameters

Parameter

Description

Specifications

Required

Mutually Exclusive With

templateid

ID used within the Controller to identify this Email Template.

String; URI parameter.

Y
(unless templatename
is specified)

templatename

templatename

Name used within the Controller to identify this Email Template.

String; URI parameter.

Y
(unless templateid
is specified)

templateid

Anchor
List Email Templates
List Email Templates

List Email Templates


Description

URI

HTTP Method

GET

Description

Retrieves information on all Email Templates.

Example URI

http://localhost:8080/uc/resources/emailtemplate/list

Authentication

HTTP Basic

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

See List Email Templates Example Response 63543589, below.

Email Template Properties

See Email Template Properties 63543589.

Anchor
List Email Templates Example Response
List Email Templates Example Response

List Email Templates: Example Response

XML Response

JSON Response


Expand
titleXML 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>



Expand
titleJSON 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 } ]


Anchor
Modify an Email Template
Modify an Email Template

Modify an Email Template


Description

URI

HTTP Method

PUT

Description

Modifies the Email Template specified by the sysId.

Example URI

http://localhost:8080/uc/resources/emailtemplate

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example Request

See Modify an Email Template Example Request 63543589, below.

Email Template Properties

See Email Template Properties 63543589.

Example Response

  • Status 200 /OK
    Successfully updated the Email Template with sysId <sysId> to version <version>.

Anchor
Modify an Email Template Example Request
Modify an Email Template Example Request

Modify an Email Template: Example Request

XML Request

JSON Request


Expand
titleXML 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>



Expand
titleJSON 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"
}


Anchor
Read an Email Template
Read an Email Template

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 63543589, 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 63543589, below.

Email Template Properties

See Email Template Properties 63543589.

Anchor
Read an Email Template URI Parameters
Read an Email Template URI Parameters

Read an Email Template: URI Parameters

Parameter

Description

Specifications

Required

Mutually Exclusive With

templateid

ID used within the Controller to identify this Email Template.

String; URI parameter.

Y
(unless templatename
is specified)

templatename

templatename

Name used within the Controller to identify this Email Template.

String; URI parameter.

Y
(unless templateid
is specified)

templateid

Anchor
Read an Email Template Example Response
Read an Email Template Example Response

Read an Email Template: Example Response

XML Response

JSON Response


Expand
titleXML 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>



Expand
titleJSON 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 }


...