StarterTemplate ASP.NET Host

<back to all web services

RequestTestSetItemBySeqPost

TestSetItem Service

The following routes are available for this service:
POST/service/api/v1/projects/{ProjectId}/testsets/{Id}/items/{Seq}Inserts a test set item to the specified position in a test setThe authenticating user must have the Update privilege for the Test Sets.
Parameters:
NameParameterData TypeRequiredDescription
IdpathintYesThe ID of the test set you need to add an item to
ProjectIdpathintYesThe ID of the project that contains the test set
SeqpathintYesThe position in the test you need to add the test set item to

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

<RequestTestSetItemBySeqPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestSetItems">
  <AssigneeUserId>0</AssigneeUserId>
  <DefaultHostId>0</DefaultHostId>
  <Id>0</Id>
  <IsActive>false</IsActive>
  <IsStoppedOnFail>false</IsStoppedOnFail>
  <ProjectId>0</ProjectId>
  <Seq>0</Seq>
  <TestId>0</TestId>
  <TestSetItemParams xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestParams">
    <d2p1:TestParamsDto>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:TestParamsDto>
  </TestSetItemParams>
</RequestTestSetItemBySeqPost>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseTestSetItemSingle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestSetItems">
  <AssigneeUserId>0</AssigneeUserId>
  <CreateUserId>0</CreateUserId>
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <DateUpdated>0001-01-01T00:00:00</DateUpdated>
  <DefaultHostId>0</DefaultHostId>
  <Id>0</Id>
  <IsActive>false</IsActive>
  <IsStoppedOnFail>false</IsStoppedOnFail>
  <NbrFiles>0</NbrFiles>
  <NbrNotes>0</NbrNotes>
  <NbrSteps>0</NbrSteps>
  <ProjectId>0</ProjectId>
  <Seq>0</Seq>
  <TestId>0</TestId>
  <TestSetId>0</TestSetId>
  <TestSetItemParams xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.TestParams">
    <d2p1:TestParamsDto>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:TestParamsDto>
  </TestSetItemParams>
  <Title>String</Title>
  <UpdateUserId>0</UpdateUserId>
</ResponseTestSetItemSingle>