POST api/Notifications

Request Information

URI Parameters

None.

Body Parameters

NotificationModel
NameDescriptionTypeAdditional information
notification_id

integer

None.

project_id

integer

None.

item_type

byte

None.

sent_at

integer

None.

message

string

None.

image

string

None.

order_year

integer

None.

order_number

integer

None.

status_message

boolean

None.

sample_id

string

None.

message_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "notification_id": 1,
  "project_id": 2,
  "item_type": 64,
  "sent_at": 4,
  "message": "sample string 5",
  "image": "sample string 6",
  "order_year": 7,
  "order_number": 8,
  "status_message": true,
  "sample_id": "sample string 10",
  "message_id": 11
}

application/xml, text/xml

Sample:
<NotificationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <image>sample string 6</image>
  <item_type>64</item_type>
  <message>sample string 5</message>
  <message_id>11</message_id>
  <notification_id>1</notification_id>
  <order_number>8</order_number>
  <order_year>7</order_year>
  <project_id>2</project_id>
  <sample_id>sample string 10</sample_id>
  <sent_at>4</sent_at>
  <status_message>true</status_message>
</NotificationModel>

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

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.