POST Users/UpdateNotificationSettings

Update users notification settings

Request Information

URI Parameters

None.

Body Parameters

RequestUpdateUserNotifications
NameDescriptionTypeAdditional information
UserID

ID of user

integer

None.

FirebaseToken

Token for firebase

string

None.

NotificationTypes

List of IDs from NotificationTypes

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "FirebaseToken": "sample string 2",
  "NotificationTypes": [
    1,
    2
  ]
}

text/html

Sample:
{"UserID":1,"FirebaseToken":"sample string 2","NotificationTypes":[1,2]}

application/xml, text/xml

Sample:
<RequestUpdateUserNotifications xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <FirebaseToken>sample string 2</FirebaseToken>
  <NotificationTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </NotificationTypes>
  <UserID>1</UserID>
</RequestUpdateUserNotifications>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestUpdateUserNotifications'.

Response Information

Resource Description

Success
NameDescriptionTypeAdditional information
success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true
}

text/html

Sample:
{"success":true}

application/xml, text/xml

Sample:
<Success xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <success>true</success>
</Success>