POST api/BuyerNotification

Request Information

URI Parameters

None.

Body Parameters

BuyerNotificationModel
NameDescriptionTypeAdditional information
Id

integer

None.

BuyerId

integer

Range: inclusive between 1 and 2147483647

NotificationType

integer

Range: inclusive between 1 and 2147483647

Content

string

Required

Date

date

None.

IsRead

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "BuyerId": 2,
  "NotificationType": 3,
  "Content": "sample string 4",
  "Date": "2024-12-21T16:19:51.9954315+00:00",
  "IsRead": true
}

text/html

Sample:
{"Id":1,"BuyerId":2,"NotificationType":3,"Content":"sample string 4","Date":"2024-12-21T16:19:51.9954315+00:00","IsRead":true}

application/xml, text/xml

Sample:
<BuyerNotificationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <BuyerId>2</BuyerId>
  <Content>sample string 4</Content>
  <Date>2024-12-21T16:19:51.9954315+00:00</Date>
  <Id>1</Id>
  <IsRead>true</IsRead>
  <NotificationType>3</NotificationType>
</BuyerNotificationModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.