StarterTemplate ASP.NET Host

<back to all web services

RequestDefectById

Defect Service

The following routes are available for this service:
GET/service/api/v1/projects/{ProjectId}/defects/{Id}Returns a defect by its IDThe defect with the specified ID must exist. The authenticating user must have the Read privilege for Defects.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains the defect
IdpathintYesThe ID of the defect you need to get
IdpathintYesThe ID of the defect you need to delete

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/RequestDefectById HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestDefectById xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Defects">
  <Id>0</Id>
  <ProjectId>0</ProjectId>
</RequestDefectById>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseSingleDefect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Defects">
  <ActFinish>0001-01-01T00:00:00</ActFinish>
  <ActHrs>0</ActHrs>
  <ActStart>0001-01-01T00:00:00</ActStart>
  <ActualResults>String</ActualResults>
  <AssignedToName>String</AssignedToName>
  <AssigneeUserId>0</AssigneeUserId>
  <ClosedBy>0</ClosedBy>
  <ClosedByName>String</ClosedByName>
  <CustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common" i:nil="true" />
  <DateClosed>0001-01-01T00:00:00</DateClosed>
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <DateOpened>0001-01-01T00:00:00</DateOpened>
  <DateResolved>0001-01-01T00:00:00</DateResolved>
  <DateUpdated>0001-01-01T00:00:00</DateUpdated>
  <Description>String</Description>
  <EstFinish>0001-01-01T00:00:00</EstFinish>
  <EstHrs>0</EstHrs>
  <EstHrsRemaining>0</EstHrsRemaining>
  <EstStart>0001-01-01T00:00:00</EstStart>
  <ExpectedResults>String</ExpectedResults>
  <FolderId>0</FolderId>
  <FolderName>String</FolderName>
  <FunctionalAreaCode>String</FunctionalAreaCode>
  <HowFoundCode>String</HowFoundCode>
  <Id>0</Id>
  <ImportId>0</ImportId>
  <IssueCode>String</IssueCode>
  <ModuleCode>String</ModuleCode>
  <NbrEvents>0</NbrEvents>
  <NbrFiles>0</NbrFiles>
  <NbrNotes>0</NbrNotes>
  <NbrTasks>0</NbrTasks>
  <NotesDescription>String</NotesDescription>
  <OpenedBy>0</OpenedBy>
  <OpenedByCompany>String</OpenedByCompany>
  <OpenedByEmail>String</OpenedByEmail>
  <OpenedByName>String</OpenedByName>
  <OriginCode>String</OriginCode>
  <OriginalId>0</OriginalId>
  <OwnerName>String</OwnerName>
  <OwnerUserId>0</OwnerUserId>
  <PctComplete>0</PctComplete>
  <PriorityCode>String</PriorityCode>
  <ProjectId>0</ProjectId>
  <Resolution>String</Resolution>
  <ResolutionCode>String</ResolutionCode>
  <ResolvedBy>0</ResolvedBy>
  <ResolvedByName>String</ResolvedByName>
  <SeverityCode>String</SeverityCode>
  <SoftwareVersionCode>String</SoftwareVersionCode>
  <Status>String</Status>
  <StepsToRepro>String</StepsToRepro>
  <Title>String</Title>
  <UpdateUserId>0</UpdateUserId>
  <UserName>String</UserName>
  <__permissions xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:Acl>0</d2p1:Acl>
  </__permissions>
</ResponseSingleDefect>