POST api/Admin/SetCustomDefectReportSettingList?projectId={projectId}

SetCustomDefectReportSettingList info based on project id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

projectId

integer

Required

Body Parameters

settings

Collection of CustomDefectReportSetting
NameDescriptionTypeAdditional information
ProjectBaseFamilyID

integer

None.

DefectProjectBaseID

integer

None.

FieldID

integer

None.

ChoiceID

integer

None.

ThresholdValue

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ProjectBaseFamilyID": 1,
    "DefectProjectBaseID": 2,
    "FieldID": 3,
    "ChoiceID": 4,
    "ThresholdValue": 1
  },
  {
    "ProjectBaseFamilyID": 1,
    "DefectProjectBaseID": 2,
    "FieldID": 3,
    "ChoiceID": 4,
    "ThresholdValue": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomDefectReportSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.DevTrackDB">
  <CustomDefectReportSetting>
    <ChoiceID>4</ChoiceID>
    <DefectProjectBaseID>2</DefectProjectBaseID>
    <FieldID>3</FieldID>
    <ProjectBaseFamilyID>1</ProjectBaseFamilyID>
    <ThresholdValue>1</ThresholdValue>
  </CustomDefectReportSetting>
  <CustomDefectReportSetting>
    <ChoiceID>4</ChoiceID>
    <DefectProjectBaseID>2</DefectProjectBaseID>
    <FieldID>3</FieldID>
    <ProjectBaseFamilyID>1</ProjectBaseFamilyID>
    <ThresholdValue>1</ThresholdValue>
  </CustomDefectReportSetting>
</ArrayOfCustomDefectReportSetting>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SetCustomDefectReportSettingList info based on project id

API_Data_ListOfCustomDefectReportSetting
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of CustomDefectReportSetting

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "ProjectBaseFamilyID": 1,
      "DefectProjectBaseID": 2,
      "FieldID": 3,
      "ChoiceID": 4,
      "ThresholdValue": 1
    },
    {
      "ProjectBaseFamilyID": 1,
      "DefectProjectBaseID": 2,
      "FieldID": 3,
      "ChoiceID": 4,
      "ThresholdValue": 1
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfCustomDefectReportSetting 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.DevTrackDB">
    <d2p1:CustomDefectReportSetting>
      <d2p1:ChoiceID>4</d2p1:ChoiceID>
      <d2p1:DefectProjectBaseID>2</d2p1:DefectProjectBaseID>
      <d2p1:FieldID>3</d2p1:FieldID>
      <d2p1:ProjectBaseFamilyID>1</d2p1:ProjectBaseFamilyID>
      <d2p1:ThresholdValue>1</d2p1:ThresholdValue>
    </d2p1:CustomDefectReportSetting>
    <d2p1:CustomDefectReportSetting>
      <d2p1:ChoiceID>4</d2p1:ChoiceID>
      <d2p1:DefectProjectBaseID>2</d2p1:DefectProjectBaseID>
      <d2p1:FieldID>3</d2p1:FieldID>
      <d2p1:ProjectBaseFamilyID>1</d2p1:ProjectBaseFamilyID>
      <d2p1:ThresholdValue>1</d2p1:ThresholdValue>
    </d2p1:CustomDefectReportSetting>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfCustomDefectReportSetting>