POST api/userpreference/update
Request Information
URI Parameters
None.
Body Parameters
DTOUserPreference| Name | Description | Type | Additional 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:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>