POST api/InAppNotifications/CreateNotification

Request Information

URI Parameters

None.

Body Parameters

CreateNotificationRequest
NameDescriptionTypeAdditional information
UserId

string

None.

Title

string

None.

Message

string

None.

NotificationType

string

None.

ActionUrl

string

None.

ImageUrl

string

None.

ReferenceId

string

None.

Priority

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "Title": "sample string 2",
  "Message": "sample string 3",
  "NotificationType": "sample string 4",
  "ActionUrl": "sample string 5",
  "ImageUrl": "sample string 6",
  "ReferenceId": "sample string 7",
  "Priority": "sample string 8"
}

application/xml, text/xml

Sample:
<CreateNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UCareAPI.Controllers">
  <ActionUrl>sample string 5</ActionUrl>
  <ImageUrl>sample string 6</ImageUrl>
  <Message>sample string 3</Message>
  <NotificationType>sample string 4</NotificationType>
  <Priority>sample string 8</Priority>
  <ReferenceId>sample string 7</ReferenceId>
  <Title>sample string 2</Title>
  <UserId>sample string 1</UserId>
</CreateNotificationRequest>

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

Response Information

Resource Description

NotificationDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

string

None.

Title

string

None.

Message

string

None.

NotificationType

string

None.

ActionUrl

string

None.

ImageUrl

string

None.

IsRead

boolean

None.

DateCreated

date

None.

DateRead

date

None.

ReferenceId

string

None.

Priority

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": "sample string 2",
  "Title": "sample string 3",
  "Message": "sample string 4",
  "NotificationType": "sample string 5",
  "ActionUrl": "sample string 6",
  "ImageUrl": "sample string 7",
  "IsRead": true,
  "DateCreated": "2026-03-26T03:51:35.4161376+02:00",
  "DateRead": "2026-03-26T03:51:35.4161376+02:00",
  "ReferenceId": "sample string 10",
  "Priority": "sample string 11"
}

application/xml, text/xml

Sample:
<NotificationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UCareAPI.Controllers">
  <ActionUrl>sample string 6</ActionUrl>
  <DateCreated>2026-03-26T03:51:35.4161376+02:00</DateCreated>
  <DateRead>2026-03-26T03:51:35.4161376+02:00</DateRead>
  <Id>1</Id>
  <ImageUrl>sample string 7</ImageUrl>
  <IsRead>true</IsRead>
  <Message>sample string 4</Message>
  <NotificationType>sample string 5</NotificationType>
  <Priority>sample string 11</Priority>
  <ReferenceId>sample string 10</ReferenceId>
  <Title>sample string 3</Title>
  <UserId>sample string 2</UserId>
</NotificationDto>