POST Report/UpdateCustomDefectType?pageId={pageId}&objectId={objectId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pageId

integer

Required

objectId

integer

Required

Body Parameters

ReportDefectTypesDTI
NameDescriptionTypeAdditional information
CurrentUserId

integer

None.

CurrentUserProfileId

integer

None.

RequestId

integer

None.

DefectTypes

Collection of DefectTypeValueDTI

None.

Request Formats

application/json, text/json

Sample:
{
  "CurrentUserId": 1,
  "CurrentUserProfileId": 2,
  "RequestId": 3,
  "DefectTypes": [
    {
      "Id": 1,
      "Value": "sample string 1"
    },
    {
      "Id": 1,
      "Value": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<ReportDefectTypesDTI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BasicQA.Models.Report">
  <CurrentUserId>1</CurrentUserId>
  <CurrentUserProfileId>2</CurrentUserProfileId>
  <DefectTypes>
    <DefectTypeValueDTI>
      <Id>1</Id>
      <Value>sample string 1</Value>
    </DefectTypeValueDTI>
    <DefectTypeValueDTI>
      <Id>1</Id>
      <Value>sample string 1</Value>
    </DefectTypeValueDTI>
  </DefectTypes>
  <RequestId>3</RequestId>
</ReportDefectTypesDTI>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReportDefectTypesDTI'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>