StarterTemplate ASP.NET Host

<back to all web services

RequestDefectPost

Defect Service

Creates a new defectThe authenticating user must have the Add privilege for Defects.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project you want to add the defect to

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: RequestDefectPost

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<RequestDefectPost 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>
  <AssigneeUserId>0</AssigneeUserId>
  <CustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common" i:nil="true" />
  <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>
  <FunctionalAreaCode>String</FunctionalAreaCode>
  <HowFoundCode>String</HowFoundCode>
  <IssueCode>String</IssueCode>
  <ModuleCode>String</ModuleCode>
  <OriginalId>0</OriginalId>
  <PctComplete>0</PctComplete>
  <PriorityCode>String</PriorityCode>
  <ProjectId>0</ProjectId>
  <Resolution>String</Resolution>
  <ResolutionCode>String</ResolutionCode>
  <SeverityCode>String</SeverityCode>
  <SoftwareVersionCode>String</SoftwareVersionCode>
  <Status>String</Status>
  <StepsToRepro>String</StepsToRepro>
  <Title>String</Title>
</RequestDefectPost>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<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>

    </soap:Body>
</soap:Envelope>