POST api/UserPreference/BatchSave

Batch Save multiple user reference values.

Request Information

URI Parameters

None.

Body Parameters

An array of Reference info.

Collection of 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"
  },
  {
    "ProjectId": 1,
    "UserId": 2,
    "PrefId": 3,
    "PreferenceValue": 1,
    "PreferenceText": "sample string 4",
    "PreferenceMemo": "sample string 5"
  }
]

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Batch Save multiple user reference values.

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>