StarterTemplate ASP.NET Host

<back to all web services

RequestRequirementPut

The following routes are available for this service:
PUT/service/api/v1/projects/{ProjectId}/requirements/{Id}Updates a requirementThe requirement with the specified ID must exist. The authenticating user must have the Update privilege for Requirements.
Parameters:
NameParameterData TypeRequiredDescription
IdpathintYesThe ID of the requirement you need to update
ProjectIdpathintYesThe ID of the project that contains the requirement

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/RequestRequirementPut HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestRequirementPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Requirements">
  <ActFinish>0001-01-01T00:00:00</ActFinish>
  <ActHrs>0</ActHrs>
  <ActStart>0001-01-01T00:00:00</ActStart>
  <Active>false</Active>
  <AssigneeUserId>0</AssigneeUserId>
  <BusinessRule>String</BusinessRule>
  <Comments>String</Comments>
  <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>
  <FolderId>0</FolderId>
  <Grouping>String</Grouping>
  <Id>0</Id>
  <Keywords>String</Keywords>
  <OriginalId>0</OriginalId>
  <OwnerUserId>0</OwnerUserId>
  <PctComplete>0</PctComplete>
  <ProjectId>0</ProjectId>
  <Status>String</Status>
  <SubGrouping>String</SubGrouping>
  <Title>String</Title>
</RequestRequirementPut>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseSingleRequirement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Requirements">
  <ActFinish>0001-01-01T00:00:00</ActFinish>
  <ActHrs>0</ActHrs>
  <ActStart>0001-01-01T00:00:00</ActStart>
  <Active>false</Active>
  <AssignedToName>String</AssignedToName>
  <AssigneeUserId>0</AssigneeUserId>
  <BusinessRule>String</BusinessRule>
  <Comments>String</Comments>
  <CustomFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common" i:nil="true" />
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <DateLastEscalated>0001-01-01T00:00:00</DateLastEscalated>
  <DateOpened>0001-01-01T00:00:00</DateOpened>
  <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>
  <FolderId>0</FolderId>
  <FolderName>String</FolderName>
  <Grouping>String</Grouping>
  <Id>0</Id>
  <ImportId>0</ImportId>
  <Keywords>String</Keywords>
  <LastEscalationRule>String</LastEscalationRule>
  <LastEscalationRuleId>0</LastEscalationRuleId>
  <NbrEscalations>0</NbrEscalations>
  <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>
  <OriginalId>0</OriginalId>
  <OwnerName>String</OwnerName>
  <OwnerUserId>0</OwnerUserId>
  <PctComplete>0</PctComplete>
  <ProjectId>0</ProjectId>
  <Status>String</Status>
  <SubGrouping>String</SubGrouping>
  <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>
</ResponseSingleRequirement>