POST api/PushNotification?accessToken={accessToken}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accessToken

string

Required

Body Parameters

PushnotificationRequest
NameDescriptionTypeAdditional information
message

PushNotificationMessge

None.

Request Formats

application/json, text/json

Sample:
{
  "message": {
    "token": "sample string 1",
    "notification": {
      "body": "sample string 1",
      "title": "sample string 2"
    },
    "data": {
      "key1": "sample string 1",
      "key2": "sample string 2"
    }
  }
}

application/xml, text/xml

Sample:
<PushnotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RESTWebAPIForPaperlessOnboarding.Models">
  <message>
    <data>
      <key1>sample string 1</key1>
      <key2>sample string 2</key2>
    </data>
    <notification>
      <body>sample string 1</body>
      <title>sample string 2</title>
    </notification>
    <token>sample string 1</token>
  </message>
</PushnotificationRequest>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>