POST api/messaging/notifications/send-to-user

Request Information

URI Parameters

None.

Body Parameters

UserNotificationRequest
NameDescriptionTypeAdditional information
PUMUSR

string

Required

String length: inclusive between 0 and 50

Title

string

String length: inclusive between 0 and 100

Message

string

String length: inclusive between 0 and 500

Url

string

String length: inclusive between 0 and 1000

BadgeCount

integer

Range: inclusive between 0 and 9999

AppName

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "PUMUSR": "sample string 1",
  "Title": "sample string 2",
  "Message": "sample string 3",
  "Url": "sample string 4",
  "BadgeCount": 1,
  "AppName": "sample string 5"
}

application/xml, text/xml

Sample:
<UserNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TomJames.API.Areas.Messaging.Models.Request">
  <AppName>sample string 5</AppName>
  <BadgeCount>1</BadgeCount>
  <Message>sample string 3</Message>
  <PUMUSR>sample string 1</PUMUSR>
  <Title>sample string 2</Title>
  <Url>sample string 4</Url>
</UserNotificationRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.