PUT (Chat Gateway Configuration)

Updates the chat gateway related configuration settings.

URI:

https://<Server IP>:<Port>/ccp-webapp/ccp/chatGatewayConfig

HTTP Method:

PUT

Request Headers

Authorization: Basic

Content-Type: application/xml

Request Body

Code Snippet
Copy<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<chatGatewayConfig>
  <channels>
    <channel>
      <auth>
        <pageAccessToken>my_facebook_page_access_token</pageAccessToken>
        <verificationToken>my_facebook_verify_token</verificationToken>
      </auth>
      <chatFeedId>100000</chatFeedId>
      <enabled>true</enabled>
      <ratingEnabled>true</ratingEnabled>
      <messages>
        <entry>
          <key>CHAT_ENDED</key>
          <value>Your chat has ended. Thank you.</value>
        </entry>
        <entry>
          <key>UNSUPPORTED_MESSAGE</key>
          <value>Sorry, we support only text messages.</value>
        </entry>
        <entry>
          <key>RATING_OFFER</key>
          <value>Would you like to rate your chat experience on a scale of 1 [worst] to 5 [best]? Select a rating.</value>
        </entry>
        <entry>
          <key>PROBLEM_STATEMENT_CAPTION</key>
          <value>How can we help you? Choose from one of the options.</value>
        </entry>
        <entry>
          <key>CHAT_ENDED_UNKNOWN_ERROR</key>
          <value>Oops! An error occurred. Chat has ended. Try again later.</value>
        </entry>
        <entry>
          <key>WAIT_FOR_AGENT</key>
          <value>Just a moment...finding an expert to chat with you.</value>
        </entry>
        <entry>
          <key>AGENT_JOIN_TIMEOUT</key>
          <value>We are busy at the moment. You can continue to wait or try again later.</value>
        </entry>
        <entry>
          <key>WELCOME_MESSAGE</key>
          <value>Hello! Welcome to ABCD Customer Care.</value>
        </entry>
        <entry>
          <key>CHAT_ENDED_INACTIVITY</key>
          <value>Chat has ended due to inactivity. You can contact us again.</value>
        </entry>
        <entry>
          <key>CHAT_ENDED_AGENT_UNAVAILABLE</key>
          <value>Sorry, we could not find an expert to chat with you at this moment. Try again later.</value>
        </entry>
        <entry>
          <key>RATING_COMPLETE</key>
          <value>Thank you for the feedback.</value>
        </entry>
      </messages>
      <problemStatements>
        <problemStatement>
          <queueId>1</queueId>
          <title>Warranty Issue</title>
        </problemStatement>
        <problemStatement>
          <queueId>2</queueId>
          <title>Sales Enquiry</title>
        </problemStatement>
        <problemStatement>
          <queueId>3</queueId>
          <title>Complaints</title>
        </problemStatement>
      </problemStatements>
      <type>FACEBOOK_MESSENGER</type>
    </channel>
  </channels>
  <httpProxy>
    <enabled>true</enabled>
    <host>my-http-proxy.example.com</host>
    <port>8080</port>
  </httpProxy>
  <version>1.0</version>
</chatGatewayConfig>

Response Status

200 OK

Response Headers

Content-Type: application/xml

Response Body

EMPTY