POST api/Notifications/CreateNotification

Request Information

URI Parameters

None.

Body Parameters

CreateMo_NotificationDTO
NameDescriptionTypeAdditional information
UserId

integer

None.

NotificationType

string

None.

Module

string

None.

Title

string

None.

Message

string

None.

ReferenceId

integer

None.

ReferenceType

string

None.

Priority

byte

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "NotificationType": "sample string 2",
  "Module": "sample string 3",
  "Title": "sample string 4",
  "Message": "sample string 5",
  "ReferenceId": 1,
  "ReferenceType": "sample string 6",
  "Priority": 64
}

application/xml, text/xml

Sample:
<CreateMo_NotificationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGSystemApi.DTO">
  <Message>sample string 5</Message>
  <Module>sample string 3</Module>
  <NotificationType>sample string 2</NotificationType>
  <Priority>64</Priority>
  <ReferenceId>1</ReferenceId>
  <ReferenceType>sample string 6</ReferenceType>
  <Title>sample string 4</Title>
  <UserId>1</UserId>
</CreateMo_NotificationDTO>

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

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.