POST api/chatmessage

Request Information

URI Parameters

None.

Body Parameters

chat_data
NameDescriptionTypeAdditional information
message_text

string

None.

sender

string

None.

id_from

integer

None.

id_to

integer

None.

date_in

date

None.

time_in

string

None.

Request Formats

application/json, text/json

Sample:
{
  "message_text": "sample string 1",
  "sender": "sample string 2",
  "id_from": 3,
  "id_to": 4,
  "date_in": "2025-12-06T07:19:05.525879+03:00",
  "time_in": "sample string 6"
}

text/xml

Sample:
<chat_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smart_weber">
  <date_in>2025-12-06T07:19:05.525879+03:00</date_in>
  <id_from>3</id_from>
  <id_to>4</id_to>
  <message_text>sample string 1</message_text>
  <sender>sample string 2</sender>
  <time_in>sample string 6</time_in>
</chat_data>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

outdata
NameDescriptionTypeAdditional information
data

DataTable

None.

rowcount

if get data then return count row else return the id row affected

integer

None.

status

boolean

None.

msg_error

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": null,
  "rowcount": 1,
  "status": true,
  "msg_error": "sample string 3"
}

text/xml

Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smart_weber">
  <data i:nil="true" />
  <msg_error>sample string 3</msg_error>
  <rowcount>1</rowcount>
  <status>true</status>
</outdata>