AttackForge Enterprise & AttackForge Core
Powered By GitBook
UpdateTestcaseOnTestsuite
This method can be used for the following functionality: Update a testcase on a testsuite.

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

1
PUT /api/ss/testsuite/:testsuite_id/testcase/:testcase_id HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

testsuite_id (string)
Id of the testsuite.
Example:
1
PUT /api/ss/testsuite/5eac95f1e594ea09107e9bb5/testcase/:testcase_id HTTP/1.1
Copied!
testcase_id (string)
Id of the testcase.
Example:
1
PUT /api/ss/testsuite/:testsuite_id/testcase/5eac9db9e9f15a0989bb3422 HTTP/1.1
Copied!
testcase (string) (optional)
Details for the testcase.
Example:
1
{
2
"testcase": "..."
3
}
Copied!
tags (array of strings) (optional)
Tags for the testcase.
Example:
1
{
2
"tags": ["...", "..."]
3
}
Copied!
is_deleted (boolean) (optional)
Whether testcase is deleted or not.
Example:
1
{
2
"is_deleted": false
3
}
Copied!

Example

The following example is a cURL request to update a testcase on a testsuite.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X PUT 'https://demo.attackforge.com/api/ss/testsuite/5eac95f1e594ea09107e9bb5/testcase/5eac9db9e9f15a0989bb3422' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
2
"testcase": "Verify A, B and C",
3
"tags": ["02", "Web App"],
4
"is_deleted": false
5
}'
Copied!

Response

Response contains a status.
1
{
2
"status": "Testcase Updated"
3
}
Copied!
Last modified 1yr ago