POST api/UserPreference/SaveListviewSetting

Save columns of listview

Request Information

URI Parameters

None.

Body Parameters

SaveListviewSettingBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

Columns

Collection of integer

None.

Option

0: task listview when use standard mode 1: task listview when use enterprise mode

integer

None.

ApplyToAll

Indicate if the listview setting is applied to all project members.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "Columns": [
    1,
    2
  ],
  "Option": 2,
  "ApplyToAll": true
}

application/xml, text/xml

Sample:
<SaveListviewSettingBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <ApplyToAll>true</ApplyToAll>
  <Columns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Columns>
  <Option>2</Option>
  <ProjectId>1</ProjectId>
</SaveListviewSettingBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Save columns of listview

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>