POST (Create an IMAP Email Feed)

Creates an IMAP email feed to be stored in the database.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/feed

HTTPS method:

POST

Parameters:

See Email Feed API Parameters.

Example XML request payload:

Example 1:

<Feed>
  <type>11</type>
  <name>name of email feed</name>
  <description>description of email feed</description>
  <email>
    <receive>
      <host>imap.email.com</host>
      <port>993</port>
      <folderName>Inbox</folderName>
      <snapshotAge>120</snapshotAge>
    </receive>
    <send>
      <host>smtp.email.com</host>
      <port>587</port>
    </send>
    <username>me@email.com</username>
    <password>******</password>
  </email>
  <pollingInterval>60</pollingInterval>
  <replyTemplateRefURL>https://10.1.1.1/ccp-webapp/ccp/
   template/reply/105678</replyTemplateRefURL>
  <tags>
    <tag>tag1</tag>
    <tag>tag2</tag>
  </tags>
</Feed>

HTTPS response headers:

The Location field of the response header contains the reference URL for the newly created feed.


Status: 201 Created
Location: https://<ServerIP>:<Port>/ccp-webapp/ccp/feed/128356
Content-Type: text/plain
Content-Length: 0
Date:  Fri, 11 Jul 2014 19:33:21 GMT

See also HTTPS responses.

The email feed uses the same credentials to connect to the receive and send email servers so that the entity receiving the email contacts is the same entity replying to the email contacts.