POST

After creating the chat feed, POST the body of the contact to the chat proxy (with no re-direct to the customer chat UI).

URL:

https://<ServerIP>:<Port>/ccp/rest/chat

HTTPS method:

POST

Example XML request payload:

<SocialContact>
  <feedRefURL>https://[ServerIP]:[Port]/
   ccp-webapp/ccp/feed/134268</feedRefURL>
  <author>Test_author</author> 
  <title>Social contact title</title> 
</SocialContact> 

The contact is returned in the location field in the header:

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

6EEF968810000132000015F60A568DFB

The chat room is in the Extension Fields of the content response:


<SocialContact>
  <author>Test_author</author>
  <createdDate>1316121187977</createdDate>
  <description/>
    <extensionFields>
      <extensionField>
        <name>chatRoom</name>
        <value>socialminer_chat.3@conference.127.0.0.1</value>
      </extensionField>
    </extensionFields>
    <id>6EEF968810000132000015F60A568DFB</id> 
    <link>
      https://[ServerIP]:[Port]/
      ccp-webapp/ccp/socialcontact/
      6EEF968810000132000015F60A568DFB
    </link>
    <publishedDate>1316121187976</publishedDate>
    <refURL>
      https://[ServerIP]:[Port]/
      ccp-webapp/ccp/socialcontact/ 
      6EEF968810000132000015F60A568DFB
    </refURL>
    <replyToId/>
      <status>unread</status>
      <statusTimestamp>1316121187976</statusTimestamp>
      <statusUserId/>
        <tags/>
          <title>Social contact title</title>
</SocialContact>

Parameters:

See Chat Feed API Parameters (Create Chat Request).

HTTPS response headers:

See HTTPS Responses.