GET api/userpreference/{userPreferenceId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userPreferenceId

integer

Required

Body Parameters

None.

Response Information

Resource Description

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.

Response 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:15:49.9410034+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:15:49.9410034+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>