PUT api/v2/Users/UpdateUserSetting
Request Information
URI Parameters
None.
Body Parameters
InputUpdateUserSettingName | Description | Type | Additional information |
---|---|---|---|
UserID | integer |
Required |
|
SettingKey | EUserSettings |
Required |
|
SettingValue | boolean |
None. |
|
NotificationCount | integer |
Required 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/TruckSpot.Models.API.Input"> <NotificationCount>2</NotificationCount> <SettingKey>TruckSpot</SettingKey> <SettingValue>true</SettingValue> <UserID>1</UserID> </InputUpdateUserSetting>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |