POST api/PushNotification?accessToken={accessToken}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| accessToken | string |
Required |
Body Parameters
PushnotificationRequest| Name | Description | Type | Additional 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:
Sample not available.
Response Information
Resource Description
stringResponse 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>