See all operations
PUT: projects/{project_id}/test-sets/{test_set_id}/test-case-mapping
Description
Updates a test set test case mapping's properties (not the mapping itself)
If Position is set to a value that is already in use by other test cases, the position will not be updated
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://eti.spiraservice.net/Services/v7_0/RestService.svc/projects/{project_id}/test-sets/{test_set_id}/test-case-mapping
Request Parameters
|
Name
|
Description
|
|
project_id
|
The id of the project
|
|
test_set_id
|
The id of the test set
|
Request Body
|
Property
|
Description
|
|
TestSetTestCaseId
|
The unique id of the test case in the test set
|
|
TestSetId
|
The id of the test set
|
|
TestCaseId
|
The id of the test case
|
|
TestSetGuid
|
The guid of the test set
|
|
TestCaseGuid
|
The guid of the test case
|
|
OwnerId
|
The id of the owner of the test case in the test set
Leave as null to default to the test set's owner
|
|
OwnerGuid
|
The guid of the owner
|
|
PlannedDate
|
Does the test case in the test set have a specific planned date
|
|
IsSetupTeardown
|
Is this a setup or teardown test case in the test set
|
|
Position
|
This value determines the position of this test case in the test set's list of test cases
|
|
Guid
|
The unique identifier for the artifact
|
|
ConcurrencyGuid
|
GUID for representing the concurrency state of a given artifact
|
|
LastUpdateDate
|
Last time the artifact was updated
|
<RemoteTestSetTestCaseMapping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<ConcurrencyGuid i:nil="true" />
<Guid i:nil="true" />
<LastUpdateDate i:nil="true" />
<IsSetupTeardown>false</IsSetupTeardown>
<OwnerGuid i:nil="true" />
<OwnerId i:nil="true" />
<PlannedDate i:nil="true" />
<Position i:nil="true" />
<TestCaseGuid i:nil="true" />
<TestCaseId>0</TestCaseId>
<TestSetGuid i:nil="true" />
<TestSetId>0</TestSetId>
<TestSetTestCaseId>0</TestSetTestCaseId>
</RemoteTestSetTestCaseMapping>
{"TestSetTestCaseId":0,
"TestSetId":0,
"TestCaseId":0,
"TestSetGuid":null,
"TestCaseGuid":null,
"OwnerId":null,
"OwnerGuid":null,
"PlannedDate":null,
"IsSetupTeardown":false,
"Position":null,
"Guid":null,
"ConcurrencyGuid":null,
"LastUpdateDate":null}
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.