POST api/notifications
Request Information
URI Parameters
None.
Body Parameters
createPushNotificationRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| title | string |
None. |
|
| message | string |
None. |
|
| enrolleeNo | string |
None. |
|
| noteType | notificationType |
None. |
Request Formats
application/json, text/json
Sample:
{
"title": "sample string 1",
"message": "sample string 2",
"enrolleeNo": "sample string 3",
"noteType": 0
}
application/xml, text/xml
Sample:
<createPushNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.api_Main.createPushNotification"> <enrolleeNo>sample string 3</enrolleeNo> <message>sample string 2</message> <noteType>Appointments</noteType> <title>sample string 1</title> </createPushNotificationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"title":"sample string 1","message":"sample string 2","enrolleeNo":"sample string 3","noteType":0}
Response Information
Resource Description
createPushNotificationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| errorMsg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"errorMsg": "sample string 2"
}
application/xml, text/xml
Sample:
<createPushNotificationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.api_Main.createPushNotification"> <errorMsg>sample string 2</errorMsg> <success>true</success> </createPushNotificationResult>
text/html
Sample:
{"success":true,"errorMsg":"sample string 2"}