RHP_API

<back to all web services

PatchPushNotificationSettings

Update the user push notification settings.

Requires Authentication
The following routes are available for this service:
PATCH/User/Account/Settings/PushNotification
PatchPushNotificationSettings Parameters:
NameParameterData TypeRequiredDescription
MessagesqueryMessageReceivePermissionNo
ViewsqueryMessageReceivePermissionNo
LikesqueryMessageReceivePermissionNo
FavouritesqueryMessageReceivePermissionNo
MatchesqueryboolNo
DateFinderInterestqueryboolNo
RHPTeamMessagesqueryboolNo
ForumCommentqueryboolNo
StoryCommentqueryboolNo
EventCommentqueryboolNo
GroupChatqueryGroupChatPushNotificationPermissionNo
PushNotificationSettings Parameters:
NameParameterData TypeRequiredDescription
MessagesformMessageReceivePermissionNo
ViewsformMessageReceivePermissionNo
LikesformMessageReceivePermissionNo
FavouritesformMessageReceivePermissionNo
GroupChatformGroupChatPushNotificationPermissionNo
MatchesformboolNo
RHPTeamMessagesformboolNo
PushTagsformstringNo
DateFinderInterestformboolNo
ForumCommentformboolNo
StoryCommentformboolNo
EventCommentformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PATCH /User/Account/Settings/PushNotification HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PatchPushNotificationSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <DateFinderInterest>false</DateFinderInterest>
  <EventComment>false</EventComment>
  <Favourites>Anyone</Favourites>
  <ForumComment>false</ForumComment>
  <GroupChat>Anyone</GroupChat>
  <Likes>Anyone</Likes>
  <Matches>false</Matches>
  <Messages>Anyone</Messages>
  <RHPTeamMessages>false</RHPTeamMessages>
  <StoryComment>false</StoryComment>
  <Views>Anyone</Views>
</PatchPushNotificationSettings>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PushNotificationSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
  <DateFinderInterest>false</DateFinderInterest>
  <EventComment>false</EventComment>
  <Favourites>Anyone</Favourites>
  <ForumComment>false</ForumComment>
  <GroupChat>Anyone</GroupChat>
  <Likes>Anyone</Likes>
  <Matches>false</Matches>
  <Messages>Anyone</Messages>
  <PushTags>String</PushTags>
  <RHPTeamMessages>false</RHPTeamMessages>
  <StoryComment>false</StoryComment>
  <Views>Anyone</Views>
</PushNotificationSettings>