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.
PUT /api/ss/testsuite/:testsuite_id/testcase/:testcase_id HTTP/1.1Host: demo.attackforge.comX-SSAPI-KEY: APIKeyContent-Type: application/jsonConnection: close
testsuite_id (string)
Id of the testsuite.
Example:
PUT /api/ss/testsuite/5eac95f1e594ea09107e9bb5/testcase/:testcase_id HTTP/1.1
testcase_id (string)
Id of the testcase.
Example:
PUT /api/ss/testsuite/:testsuite_id/testcase/5eac9db9e9f15a0989bb3422 HTTP/1.1
testcase (string) (optional)
Details for the testcase.
Example:
{"testcase": "..."}
tags (array of strings) (optional)
Tags for the testcase.
Example:
{"tags": ["...", "..."]}
is_deleted (boolean) (optional)
Whether testcase is deleted or not.
Example:
{"is_deleted": false}
The following example is a cURL request to update a testcase on a testsuite.
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
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 '{"testcase": "Verify A, B and C","tags": ["02", "Web App"],"is_deleted": false}'
Response contains a status.
{"status": "Testcase Updated"}