POST api/Account/PostNotification

Request Information

URI Parameters

None.

Body Parameters

PostNotificationViewModel
NameDescriptionTypeAdditional information
ReceiverId

string

Required

Message

string

Required

IsSystemMessage

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "receiverId": "sample string 1",
  "message": "sample string 2",
  "isSystemMessage": true
}

application/xml, text/xml

Sample:
<NotificationViewModel.PostNotificationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ncdc.api.ViewModels">
  <IsSystemMessage>true</IsSystemMessage>
  <Message>sample string 2</Message>
  <ReceiverId>sample string 1</ReceiverId>
</NotificationViewModel.PostNotificationViewModel>

multipart/form-data

Sample:
<NotificationViewModel.PostNotificationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ncdc.api.ViewModels"><IsSystemMessage>true</IsSystemMessage><Message>sample string 2</Message><ReceiverId>sample string 1</ReceiverId></NotificationViewModel.PostNotificationViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.