POST api/userpreference/update

Request Information

URI Parameters

None.

Body Parameters

DTOUserPreference
NameDescriptionTypeAdditional information
UserPreferenceID

integer

None.

Key

string

None.

Value

string

None.

Label

string

None.

ValueType

string

None.

IsRequired

boolean

None.

IsEncrypted

boolean

None.

ResourceTypeID

integer

None.

ResourceID

integer

None.

DateCreated

date

None.

Definitions

string

None.

IsSystem

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserPreferenceID": 1,
  "Key": "sample string 2",
  "Value": "sample string 3",
  "Label": "sample string 4",
  "ValueType": "sample string 5",
  "IsRequired": true,
  "IsEncrypted": true,
  "ResourceTypeID": 8,
  "ResourceID": 9,
  "DateCreated": "2025-10-26T11:08:24.6642305+08:00",
  "Definitions": "sample string 11",
  "IsSystem": true
}

application/xml, text/xml

Sample:
<DTOUserPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <DateCreated>2025-10-26T11:08:24.6642305+08:00</DateCreated>
  <Definitions>sample string 11</Definitions>
  <IsEncrypted>true</IsEncrypted>
  <IsRequired>true</IsRequired>
  <IsSystem>true</IsSystem>
  <Key>sample string 2</Key>
  <Label>sample string 4</Label>
  <ResourceID>9</ResourceID>
  <ResourceTypeID>8</ResourceTypeID>
  <UserPreferenceID>1</UserPreferenceID>
  <Value>sample string 3</Value>
  <ValueType>sample string 5</ValueType>
</DTOUserPreference>

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 'DTOUserPreference'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>