PUT api/NotificationPreferences
Used to fetch the notification prefernces of a user
Request Information
URI Parameters
None.
Body Parameters
NotificationPreferenceDTOName | Description | Type | Additional information |
---|---|---|---|
eventNotificationTypeId |
Event Notification Type |
integer |
None. |
isActive |
Whether notification preference is enabled |
boolean |
None. |
DeliveryMethod |
Enabled delivery methods |
Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "eventNotificationTypeId": 1, "isActive": true, "DeliveryMethod": [ "sample string 1", "sample string 2" ] }
text/xml
Sample:
<NotificationPreferenceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <DeliveryMethod xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </DeliveryMethod> <eventNotificationTypeId>1</eventNotificationTypeId> <isActive>true</isActive> </NotificationPreferenceDTO>
multipart/form-data
Sample:
<NotificationPreferenceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><DeliveryMethod xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></DeliveryMethod><eventNotificationTypeId>1</eventNotificationTypeId><isActive>true</isActive></NotificationPreferenceDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
text/xml, multipart/form-data
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>