POST api/Messages/PostMessages

Request Information

URI Parameters

None.

Body Parameters

Messages
NameDescriptionTypeAdditional information
MessageId

integer

None.

EmployesId

integer

None.

Txt

string

None.

PublishDate

date

None.

PublishTime

time interval

None.

GroupChatId

integer

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageId": 1,
  "EmployesId": 2,
  "Txt": "sample string 3",
  "PublishDate": "2025-08-14T03:24:40.6744975+00:00",
  "PublishTime": "00:00:00.1234567",
  "GroupChatId": 6,
  "LastChanged": "2025-08-14T03:24:40.6744975+00:00",
  "LastChange_AuthorId": 1
}

application/xml, text/xml

Sample:
<Messages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <EmployesId>2</EmployesId>
  <GroupChatId>6</GroupChatId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:24:40.6744975+00:00</LastChanged>
  <MessageId>1</MessageId>
  <PublishDate>2025-08-14T03:24:40.6744975+00:00</PublishDate>
  <PublishTime>PT0.1234567S</PublishTime>
  <Txt>sample string 3</Txt>
</Messages>

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 'Messages'.

Response Information

Resource Description

Messages
NameDescriptionTypeAdditional information
MessageId

integer

None.

EmployesId

integer

None.

Txt

string

None.

PublishDate

date

None.

PublishTime

time interval

None.

GroupChatId

integer

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "MessageId": 1,
  "EmployesId": 2,
  "Txt": "sample string 3",
  "PublishDate": "2025-08-14T03:24:40.6744975+00:00",
  "PublishTime": "00:00:00.1234567",
  "GroupChatId": 6,
  "LastChanged": "2025-08-14T03:24:40.6744975+00:00",
  "LastChange_AuthorId": 1
}

application/xml, text/xml

Sample:
<Messages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <EmployesId>2</EmployesId>
  <GroupChatId>6</GroupChatId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:24:40.6744975+00:00</LastChanged>
  <MessageId>1</MessageId>
  <PublishDate>2025-08-14T03:24:40.6744975+00:00</PublishDate>
  <PublishTime>PT0.1234567S</PublishTime>
  <Txt>sample string 3</Txt>
</Messages>