POST api/WebChat/InsertConversationChatData

Request Information

URI Parameters

None.

Body Parameters

WebChatApiRequestViewModelOfWebChatApiInsertConversationChatDataRequestViewModel
NameDescriptionTypeAdditional information
UserName

string

Required

String length: inclusive between 0 and 50

Password

string

Required

String length: inclusive between 0 and 50

Data

WebChatApiInsertConversationChatDataRequestViewModel

Required

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "Data": {
    "ConversationExternalId": 1,
    "HbToken": "sample string 2",
    "LastAgentIsBot": true,
    "CustomerFirstName": "sample string 4",
    "CustomerLastName": "sample string 5",
    "CustomerMobilePhone": "sample string 6",
    "CustomerEmail": "sample string 7",
    "ConversationTags": [
      {
        "TagId": 1,
        "TagName": "sample string 2"
      },
      {
        "TagId": 1,
        "TagName": "sample string 2"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<WebChatApiRequestViewModelOfWebChatApiInsertConversationChatDataRequestViewModelg7kktrfR xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hepsiburada.CustomerServices.Api.WebChat.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Hepsiburada.CustomerServices.Api.WebChat.Models.WebChat">
    <d2p1:ConversationExternalId>1</d2p1:ConversationExternalId>
    <d2p1:ConversationTags>
      <d2p1:WebChatApiConversationTagViewModel>
        <d2p1:TagId>1</d2p1:TagId>
        <d2p1:TagName>sample string 2</d2p1:TagName>
      </d2p1:WebChatApiConversationTagViewModel>
      <d2p1:WebChatApiConversationTagViewModel>
        <d2p1:TagId>1</d2p1:TagId>
        <d2p1:TagName>sample string 2</d2p1:TagName>
      </d2p1:WebChatApiConversationTagViewModel>
    </d2p1:ConversationTags>
    <d2p1:CustomerEmail>sample string 7</d2p1:CustomerEmail>
    <d2p1:CustomerFirstName>sample string 4</d2p1:CustomerFirstName>
    <d2p1:CustomerLastName>sample string 5</d2p1:CustomerLastName>
    <d2p1:CustomerMobilePhone>sample string 6</d2p1:CustomerMobilePhone>
    <d2p1:HbToken>sample string 2</d2p1:HbToken>
    <d2p1:LastAgentIsBot>true</d2p1:LastAgentIsBot>
  </Data>
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</WebChatApiRequestViewModelOfWebChatApiInsertConversationChatDataRequestViewModelg7kktrfR>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WebChatApiRequestViewModel`1'.

Response Information

Resource Description

WebChatApiResponseViewModelOfString
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "Data": "sample string 3"
}

application/xml, text/xml

Sample:
<WebChatApiResponseViewModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hepsiburada.CustomerServices.Api.WebChat.Models">
  <Data>sample string 3</Data>
  <Message>sample string 2</Message>
  <Status>true</Status>
</WebChatApiResponseViewModelOfstring>