POST api/PersonMessages/Post

Sends a new message in the conversation of the specified event. The caller must be an attendee of the event to be able to send messages.

Request Information

URI Parameters

None.

Body Parameters

PostMessageDto
NameDescriptionTypeAdditional information
EventId

integer

Required

Text

string

Required

Type

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "Text": "sample string 2",
  "Type": 1
}

application/xml, text/xml

Sample:
<PostMessageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.MessageNs">
  <EventId>1</EventId>
  <Text>sample string 2</Text>
  <Type>1</Type>
</PostMessageDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.