POST api/BarnChat/SendBarnChatMessage
Request Information
URI Parameters
None.
Body Parameters
CreateBarnChart| Name | Description | Type | Additional information |
|---|---|---|---|
| barnChat | BarnChat |
None. |
|
| lstBarnChatConnections | Collection of BarnChatConnections |
None. |
|
| barnChatMessage | BarnChatMessage |
None. |
Request Formats
application/json, text/json
Sample:
{
"barnChat": {
"BarnChatID": 1,
"AuthorID": 2,
"LastMessagedPersonID": 3,
"DateModified": "2025-12-05T20:21:55.1108537-08:00",
"DateCreated": "2025-12-05T20:21:55.1108537-08:00"
},
"lstBarnChatConnections": [
{
"BarnChatID": 1,
"ConnectedPersonID": 2,
"IsRead": true,
"DateModified": "2025-12-05T20:21:55.1108537-08:00",
"DateCreated": "2025-12-05T20:21:55.1108537-08:00"
},
{
"BarnChatID": 1,
"ConnectedPersonID": 2,
"IsRead": true,
"DateModified": "2025-12-05T20:21:55.1108537-08:00",
"DateCreated": "2025-12-05T20:21:55.1108537-08:00"
}
],
"barnChatMessage": {
"BarnChatID": 1,
"BarnChatMessageID": 2,
"PersonID": 3,
"Message": "sample string 4",
"PersonName": "sample string 5",
"AuthorID": 6,
"DateModified": "2025-12-05T20:21:55.1108537-08:00",
"DateCreated": "2025-12-05T20:21:55.1108537-08:00"
}
}
application/xml, text/xml
Sample:
<CreateBarnChart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities">
<barnChat>
<DateCreated>2025-12-05T20:21:55.1108537-08:00</DateCreated>
<DateModified>2025-12-05T20:21:55.1108537-08:00</DateModified>
<AuthorID>2</AuthorID>
<BarnChatID>1</BarnChatID>
<LastMessagedPersonID>3</LastMessagedPersonID>
</barnChat>
<barnChatMessage>
<DateCreated>2025-12-05T20:21:55.1108537-08:00</DateCreated>
<DateModified>2025-12-05T20:21:55.1108537-08:00</DateModified>
<AuthorID>6</AuthorID>
<BarnChatID>1</BarnChatID>
<BarnChatMessageID>2</BarnChatMessageID>
<Message>sample string 4</Message>
<PersonID>3</PersonID>
<PersonName>sample string 5</PersonName>
</barnChatMessage>
<lstBarnChatConnections>
<BarnChatConnections>
<DateCreated>2025-12-05T20:21:55.1108537-08:00</DateCreated>
<DateModified>2025-12-05T20:21:55.1108537-08:00</DateModified>
<BarnChatID>1</BarnChatID>
<ConnectedPersonID>2</ConnectedPersonID>
<IsRead>true</IsRead>
</BarnChatConnections>
<BarnChatConnections>
<DateCreated>2025-12-05T20:21:55.1108537-08:00</DateCreated>
<DateModified>2025-12-05T20:21:55.1108537-08:00</DateModified>
<BarnChatID>1</BarnChatID>
<ConnectedPersonID>2</ConnectedPersonID>
<IsRead>true</IsRead>
</BarnChatConnections>
</lstBarnChatConnections>
</CreateBarnChart>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BarnChatMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| BarnChatID | integer |
None. |
|
| BarnChatMessageID | integer |
None. |
|
| PersonID | integer |
None. |
|
| Message | string |
None. |
|
| PersonName | string |
None. |
|
| AuthorID | integer |
None. |
|
| DateModified | date |
None. |
|
| DateCreated | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"BarnChatID": 1,
"BarnChatMessageID": 2,
"PersonID": 3,
"Message": "sample string 4",
"PersonName": "sample string 5",
"AuthorID": 6,
"DateModified": "2025-12-05T20:21:55.1108537-08:00",
"DateCreated": "2025-12-05T20:21:55.1108537-08:00"
}
application/xml, text/xml
Sample:
<BarnChatMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities"> <DateCreated>2025-12-05T20:21:55.1108537-08:00</DateCreated> <DateModified>2025-12-05T20:21:55.1108537-08:00</DateModified> <AuthorID>6</AuthorID> <BarnChatID>1</BarnChatID> <BarnChatMessageID>2</BarnChatMessageID> <Message>sample string 4</Message> <PersonID>3</PersonID> <PersonName>sample string 5</PersonName> </BarnChatMessage>