POST api/Users/UpdateUserSetting

Request Information

URI Parameters

None.

Body Parameters

InputUpdateUserSetting
NameDescriptionTypeAdditional information
UserID

integer

Required

SettingKey

EUserSettings

Required

SettingValue

boolean

None.

NotificationCount

integer

Range: inclusive between 0 and 1

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "SettingKey": 0,
  "SettingValue": true,
  "NotificationCount": 2
}

application/xml, text/xml

Sample:
<InputUpdateUserSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Musika.Models.API.Input">
  <NotificationCount>2</NotificationCount>
  <SettingKey>Musika</SettingKey>
  <SettingValue>true</SettingValue>
  <UserID>1</UserID>
</InputUpdateUserSetting>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.