Email Connection Web Services
Universal Controller supports the following RESTful-based web services for Email Connection operations, which are listed alphabetically on this page.
- Create an Email Connection
- Delete an Email Connection
- List Email Connections
- Modify an Email Connection
- Read an Email Connection
Formatting specifications for each web service, including details about property requirements, are provided.
Create an Email Connection
Description | |
|---|---|
URI | http://host_name/uc/resources/emailconnection |
HTTP Method | POST |
Description | Creates an Email Connection. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Create an Email Connection: Example Request, below. |
Example Response |
|
Email Connection Properties | See Email Connection Properties, below. |
Create an Email Connection: Example Request
- JSON
- XML
JSON Request
{
"authentication" : true,
"authenticationType" : "Password",
"defaultUser" : "jane.doe@stonebranch.com",
"description" : null,
"emailAddr" : "jane.doe@stonebranch.com",
"exportReleaseLevel" : "7.3.0.0",
"exportTable" : "ops_email_connection",
"imap" : null,
"imapPort" : 143,
"imapSsl" : false,
"imapStarttls" : false,
"name" : "Email Connection 1",
"oauthClient" : null,
"opswiseGroups" : [ ],
"retainSysIds" : true,
"smtp" : "smtp.gmail.com",
"smtpPort" : 465,
"smtpSsl" : true,
"smtpStarttls" : false,
"sysId" : "3b2c5049632841189888c921f9584edf",
"systemConnection" : false,
"trashFolder" : null,
"type" : "Outgoing",
"version" : 3
}
XML Request
<emailConnection exportReleaseLevel="7.3.0.0" exportTable="ops_email_connection" retainSysIds="true" version="3">
<authentication>true</authentication>
<authenticationType>Password</authenticationType>
<defaultUser>jane.doe@stonebranch.com</defaultUser>
<description />
<emailAddr>jane.doe@stonebranch.com</emailAddr>
<imap />
<imapPort>143</imapPort>
<imapSsl>false</imapSsl>
<imapStarttls>false</imapStarttls>
<name>Email Connection 1</name>
<oauthClient />
<opswiseGroups/>
<smtp>smtp.gmail.com</smtp>
<smtpPort>465</smtpPort>
<smtpSsl>true</smtpSsl>
<smtpStarttls>false</smtpStarttls>
<sysId>3b2c5049632841189888c921f9584edf</sysId>
<systemConnection>false</systemConnection>
<trashFolder />
<type>Outgoing</type>
</emailConnection>
Email Connection Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Authentication Required | Deprecated. If | Boolean; Valid values: true/false. Default is false. | N |
| Authentication | Method of authentication. | Valid values (case-insensitive):
| N |
| Is Authorized | If | Boolean; read only | N |
| Password | If | Y (if | |
| User Name | If | Y (if | |
| Description | Description of this record. | N | |
| Email Address | If | Y | |
| n/a | Universal Controller release that the record was exported from. | read only | N |
| n/a | Record table information. | read only | N |
| Incoming Mail Server (IMAP) | If | Y | |
| IMAP Port | If | Y | |
| Enable SSL | If | Boolean; Valid values: true/false. Default is false. | N |
| Enable STARTTLS | If | N | |
| Connection Name | Name used within the Controller to identify this Email Connection. | Y | |
| OAuth Client | The OAuth client used to authorize the email connection. | Y (if | |
| Member of Business Services | Business Services that this record belongs to. XML JSON | 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 |
| Outgoing Mail Server (SMTP) | If | Y | |
| SMTP Port | If | Y | |
| Enable SSL | If | Boolean; Valid values: true/false. Default is false. | N |
| Enable STARTTLS | If | N | |
| n/a | System ID field in the database for this Email Connection record. | Persisted only if retainSysIds is set to true. | N |
| Use for System Notifications | If | Boolean; Valid values: true/false. Default is false. | Y |
| Trash Folder | If | N | |
| Connection Type | Type of Email Connection. info You cannot modify the type after the Email Connection has been created. | Valid Values:
Default is Outgoing (1) | Y |
Delete an Email Connection
Description | |
|---|---|
URI | http://host_name/uc/resources/emailconnection |
HTTP Method | DELETE |
Description | Deletes an Email Connection. |
URI Parameters | See Delete an Email Connection: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/emailconnection?connectionname=Test4 |
Example Response |
|
Delete an Email Connection: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this Email Connection. | String; URI parameter. | Y |
|
| Name used within the Controller to identify this Email Connection. | String; URI parameter. | Y |
|
List Email Connections
Description | |
|---|---|
URI | http://host_name/uc/resources/emailconnection/list |
HTTP Method | GET |
Description | Retrieves information on all Email Connections. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See List Email Connections: Example Response, below. |
Email Connection Properties | See Email Connection Properties. |
List Email Connections: Example Response
- JSON
- XML
JSON
{
"authentication": true,
"authenticationType": "Password",
"authorized": false,
"defaultUser": "jane.doe@stonebranch.com",
"description": null,
"emailAddr": "jane.doe@stonebranch.com",
"exportReleaseLevel": "7.3.0.0",
"exportTable": "ops_email_connection",
"imap": null,
"imapPort": 143,
"imapSsl": false,
"imapStarttls": false,
"name": "Email Connection 1",
"oauthClient": null,
"opswiseGroups": [ ],
"retainSysIds": true,
"smtp": "smtp.gmail.com",
"smtpPort": 465,
"smtpSsl": true,
"smtpStarttls": false,
"sysId": "3b2c5049632841189888c921f9584edf",
"systemConnection": false,
"trashFolder": null,
"type": "Outgoing",
"version": 3
}
XML
<emailConnection exportReleaseLevel="7.3.0.0" exportTable="ops_email_connection" retainSysIds="true" version="3">
<authentication>true</authentication>
<authenticationType>Password</authenticationType>
<authorized>false</authorized>
<defaultUser>jane.doe@stonebranch.com</defaultUser>
<description />
<emailAddr>jane.doe@stonebranch.com</emailAddr>
<imap />
<imapPort>143</imapPort>
<imapSsl>false</imapSsl>
<imapStarttls>false</imapStarttls>
<name>Email Connection 1</name>
<oauthClient />
<opswiseGroups/>
<smtp>smtp.gmail.com</smtp>
<smtpPort>465</smtpPort>
<smtpSsl>true</smtpSsl>
<smtpStarttls>false</smtpStarttls>
<sysId>3b2c5049632841189888c921f9584edf</sysId>
<systemConnection>false</systemConnection>
<trashFolder />
<type>Outgoing</type>
</emailConnection>
Modify an Email Connection
Description | |
|---|---|
URI | http://host_name/uc/resources/emailconnection |
HTTP Method | PUT |
Description | Modifies the Email Connection specified by the |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Modify an Email Connection: Example Request, below. |
Email Connection Properties | See Email Connection Properties. |
Example Response |
|
Modify an Email Connection: Example Request
- JSON
- XML
JSON Request
{
"authentication": true,
"defaultPwd": "abc1",
"defaultUser": "user1",
"description": "description",
"emailAddr": "jane.doe@stonebranch.com",
"imap": null,
"imapPort": null,
"imapSsl": true,
"imapStarttls": null,
"name": "Email Connection 1",
"opswiseGroups": null,
"smtp": "server1",
"smtpPort": 4567,
"smtpSsl": true,
"smtpStarttls": false,
"systemConnection": true,
"sysId": "62701879a6264107bb757a952bcc65cc",
"trashFolder": null,
"type": "Outgoing"
}
XML Request
<emailConnection>
<authentication>true</authentication>
<defaultPwd>abc1</defaultPwd>
<defaultUser>user1</defaultUser>
<description>description</description>
<emailAddr>jane.doe@stonebranch.com</emailAddr>
<imap />
<imapPort />
<imapSsl>true</imapSsl>
<imapStarttls>false</imapStarttls>
<name>Email Connection 1</name>
<opswiseGroups />
<smtp>server1</smtp>
<smtpPort>4567</smtpPort>
<smtpSsl>true</smtpSsl>
<smtpStarttls>false</smtpStarttls>
<sysId>62701879a6264107bb757a952bcc65cc</sysId>
<systemConnection>true</systemConnection>
<trashFolder />
<type>Outgoing</type>
</emailConnection>
Read an Email Connection
URI | http://host_name/uc/resources/emailconnection |
HTTP Method | GET |
Description | Retrieves information on a specific Email Connection. |
URI Parameters | See Read an Email Connection: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/emailconnection?connectionname=Test4 |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See Read an Email Connection: Example Response, below. |
Email Connection Properties | See Email Connection Properties. |
Read an Email Connection: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this Email Connection. | String; URI parameter. | Y |
|
| Name used within the Controller to identify this Email Connection. | String; URI parameter. | Y |
|
Read an Email Connection: Example Response
- JSON
- XML
JSON Request
{
"authentication" : true,
"authenticationType" : "Password",
"authorized" : false,
"defaultUser" : "jane.doe@stonebranch.com",
"description" : null,
"emailAddr" : "jane.doe@stonebranch.com",
"exportReleaseLevel" : "7.3.0.0",
"exportTable" : "ops_email_connection",
"imap" : null,
"imapPort" : 143,
"imapSsl" : false,
"imapStarttls" : false,
"name" : "Email Connection 1",
"oauthClient" : null,
"opswiseGroups" : [ ],
"retainSysIds" : true,
"smtp" : "smtp.gmail.com",
"smtpPort" : 465,
"smtpSsl" : true,
"smtpStarttls" : false,
"sysId" : "3b2c5049632841189888c921f9584edf",
"systemConnection" : false,
"trashFolder" : null,
"type" : "Outgoing",
"version" : 3
}
XML Request
<emailConnection exportReleaseLevel="7.3.0.0" exportTable="ops_email_connection" retainSysIds="true" version="3">
<authentication>true</authentication>
<authenticationType>Password</authenticationType>
<authorized>false</authorized>
<defaultUser>jane.doe@stonebranch.com</defaultUser>
<description />
<emailAddr>jane.doe@stonebranch.com</emailAddr>
<imap />
<imapPort>143</imapPort>
<imapSsl>false</imapSsl>
<imapStarttls>false</imapStarttls>
<name>Email Connection 1</name>
<oauthClient />
<opswiseGroups/>
<smtp>smtp.gmail.com</smtp>
<smtpPort>465</smtpPort>
<smtpSsl>true</smtpSsl>
<smtpStarttls>false</smtpStarttls>
<sysId>3b2c5049632841189888c921f9584edf</sysId>
<systemConnection>false</systemConnection>
<trashFolder />
<type>Outgoing</type>
</emailConnection>