POST api/PushNotification/Mobile

Request Information

URI Parameters

None.

Body Parameters

NotificationTokenMobileBindingModel
NameDescriptionTypeAdditional information
to

string

None.

data

Object

None.

title

string

None.

body

string

None.

ttl

integer

None.

expiration

integer

None.

priority

string

None.

subtitle

string

None.

sound

string

None.

badge

integer

None.

channelId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "to": "sample string 1",
  "data": {},
  "title": "sample string 3",
  "body": "sample string 4",
  "ttl": 1,
  "expiration": 1,
  "priority": "sample string 5",
  "subtitle": "sample string 6",
  "sound": "sample string 7",
  "badge": 1,
  "channelId": "sample string 8"
}

application/xml, text/xml

Sample:
<NotificationTokenMobileBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <PushBadgeCount>1</PushBadgeCount>
  <PushBody>sample string 4</PushBody>
  <PushChannelId>sample string 8</PushChannelId>
  <PushData />
  <PushExpiration>1</PushExpiration>
  <PushPriority>sample string 5</PushPriority>
  <PushSound>sample string 7</PushSound>
  <PushSubTitle>sample string 6</PushSubTitle>
  <PushTTL>1</PushTTL>
  <PushTitle>sample string 3</PushTitle>
  <PushTo>sample string 1</PushTo>
</NotificationTokenMobileBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.