POST api/Notifications/DeleteNotification

Request Information

URI Parameters

None.

Body Parameters

NotificationsViewModel
NameDescriptionTypeAdditional information
NotificationId

integer

None.

NotificationText

string

None.

IsViewed

boolean

None.

IsDeleted

boolean

None.

DateTime

date

None.

UserId

string

None.

NotificationType

string

None.

ObjectId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "NotificationId": 1,
  "NotificationText": "sample string 1",
  "IsViewed": true,
  "IsDeleted": true,
  "DateTime": "2026-10-15T03:20:21.5802418-07:00",
  "UserId": "sample string 2",
  "NotificationType": "sample string 3",
  "ObjectId": 1
}

application/xml, text/xml

Sample:
<NotificationsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PS.HireRocks.Model">
  <DateTime>2026-10-15T03:20:21.5802418-07:00</DateTime>
  <IsDeleted>true</IsDeleted>
  <IsViewed>true</IsViewed>
  <NotificationId>1</NotificationId>
  <NotificationText>sample string 1</NotificationText>
  <NotificationType>sample string 3</NotificationType>
  <ObjectId>1</ObjectId>
  <UserId>sample string 2</UserId>
</NotificationsViewModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.