POST api/UserPreference/Save

Save a specified user's reference value based on reference id.

Request Information

URI Parameters

None.

Body Parameters

Reference info.

TUserPref
NameDescriptionTypeAdditional information
ProjectId

integer

None.

UserId

integer

None.

PrefId

integer

None.

PreferenceValue

integer

None.

PreferenceText

string

None.

PreferenceMemo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "UserId": 2,
  "PrefId": 3,
  "PreferenceValue": 1,
  "PreferenceText": "sample string 4",
  "PreferenceMemo": "sample string 5"
}

application/xml, text/xml

Sample:
<TUserPref xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Project">
  <PrefId>3</PrefId>
  <PreferenceMemo>sample string 5</PreferenceMemo>
  <PreferenceText>sample string 4</PreferenceText>
  <PreferenceValue>1</PreferenceValue>
  <ProjectId>1</ProjectId>
  <UserId>2</UserId>
</TUserPref>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Save a specified user's reference value based on reference id.

ApiReturn
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</ApiReturn>