POST api/Notifications/addNotification

Request Information

URI Parameters

None.

Body Parameters

tbl_notification
NameDescriptionTypeAdditional information
id

integer

None.

to_receiver_id

integer

None.

from_sender_id

integer

None.

receiver_user_type

integer

None.

readState

boolean

None.

notification_title

string

None.

notification_text

string

None.

notification_date

string

None.

notification_type

string

None.

subject_id

integer

None.

lastModified

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "to_receiver_id": 1,
  "from_sender_id": 1,
  "receiver_user_type": 1,
  "readState": true,
  "notification_title": "sample string 2",
  "notification_text": "sample string 3",
  "notification_date": "sample string 4",
  "notification_type": "sample string 5",
  "subject_id": 1,
  "lastModified": 6
}

application/xml, text/xml

Sample:
<tbl_notification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoetAPI.Models">
  <from_sender_id>1</from_sender_id>
  <id>1</id>
  <lastModified>6</lastModified>
  <notification_date>sample string 4</notification_date>
  <notification_text>sample string 3</notification_text>
  <notification_title>sample string 2</notification_title>
  <notification_type>sample string 5</notification_type>
  <readState>true</readState>
  <receiver_user_type>1</receiver_user_type>
  <subject_id>1</subject_id>
  <to_receiver_id>1</to_receiver_id>
</tbl_notification>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>