POST api/UserPreference/Preferences
Get a specified user's preference values base on preference ids
Request Information
URI Parameters
None.
Body Parameters
UserPreferenceBindingName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
UserId | integer |
None. |
|
PrefIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "UserId": 2, "PrefIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<UserPreferenceBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <PrefIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </PrefIds> <ProjectId>1</ProjectId> <UserId>2</UserId> </UserPreferenceBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get a specified user's preference values base on preference ids
API_Data_ListOfTUserPrefName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of TUserPref |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "ProjectId": 1, "UserId": 2, "PrefId": 3, "PreferenceValue": 1, "PreferenceText": "sample string 4", "PreferenceMemo": "sample string 5" }, { "ProjectId": 1, "UserId": 2, "PrefId": 3, "PreferenceValue": 1, "PreferenceText": "sample string 4", "PreferenceMemo": "sample string 5" } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfTUserPref xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Project"> <d2p1:TUserPref> <d2p1:PrefId>3</d2p1:PrefId> <d2p1:PreferenceMemo>sample string 5</d2p1:PreferenceMemo> <d2p1:PreferenceText>sample string 4</d2p1:PreferenceText> <d2p1:PreferenceValue>1</d2p1:PreferenceValue> <d2p1:ProjectId>1</d2p1:ProjectId> <d2p1:UserId>2</d2p1:UserId> </d2p1:TUserPref> <d2p1:TUserPref> <d2p1:PrefId>3</d2p1:PrefId> <d2p1:PreferenceMemo>sample string 5</d2p1:PreferenceMemo> <d2p1:PreferenceText>sample string 4</d2p1:PreferenceText> <d2p1:PreferenceValue>1</d2p1:PreferenceValue> <d2p1:ProjectId>1</d2p1:ProjectId> <d2p1:UserId>2</d2p1:UserId> </d2p1:TUserPref> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfTUserPref>