POST v1/api/notification/saveNotification
Request Information
URI Parameters
None.
Body Parameters
saveNotificationRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| notification | Collection of noteReqSave |
None. |
|
| pushNotification | boolean |
None. |
|
| enrolleeNo | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"notification": [
{
"notification_id": 1,
"enabled": true
},
{
"notification_id": 1,
"enabled": true
}
],
"pushNotification": true,
"enrolleeNo": "sample string 2"
}
application/xml, text/xml
Sample:
<saveNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.saveNotification">
<enrolleeNo>sample string 2</enrolleeNo>
<notification>
<saveNotificationRequest.noteReqSave>
<enabled>true</enabled>
<notification_id>1</notification_id>
</saveNotificationRequest.noteReqSave>
<saveNotificationRequest.noteReqSave>
<enabled>true</enabled>
<notification_id>1</notification_id>
</saveNotificationRequest.noteReqSave>
</notification>
<pushNotification>true</pushNotification>
</saveNotificationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"notification":[{"notification_id":1,"enabled":true},{"notification_id":1,"enabled":true}],"pushNotification":true,"enrolleeNo":"sample string 2"}
Response Information
Resource Description
saveNotificationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| errorMsg | string |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"errorMsg": "sample string 2",
"message": "sample string 3"
}
application/xml, text/xml
Sample:
<saveNotificationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.saveNotification"> <errorMsg>sample string 2</errorMsg> <message>sample string 3</message> <success>true</success> </saveNotificationResult>
text/html
Sample:
{"success":true,"errorMsg":"sample string 2","message":"sample string 3"}