PUT (Email Draft)

Instantiates a server task to save the email reply body as a draft email in the Drafts folder (the original body of the email is not saved).

After the email reply is sent, the draft email is automatically deleted from the Drafts folder.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/reply/email/<id>/draft

HTTPS method:

PUT

Input/Output format:

xml

Parameters:

See Email Reply API Parameters.

Example XML request payload:

<EmailMessage>
  <contentType>text/html</contentType>
  <body><![CDATA[ ... ]]></body>  
</EmailMessage>

HTTPS response headers:

HTTPS response: 202

Location header:

https://<Server>:<Port>/ccp-webapp/ccp/reply/email/
EE9A8E33100001470000004A0A5686AA/draft/4567

The client polls the URL provided in the location header to get the status of the task.

URL: Provided in the location header

HTTPS method: GET

Input/Output format: xml, json

Response:

  • 200—Task is finished. Email sent successfully.

  • 202—Task is in progress. Poll again.