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.
POST /api/ss/testsuite/:id/testcase HTTP/1.1Host: demo.attackforge.comX-SSAPI-KEY: APIKeyContent-Type: application/jsonConnection: close
id (string)
Id of the testsuite.
Example:
POST /api/ss/testsuite/5eac95f1e594ea09107e9bb5/testcase HTTP/1.1
testcase (string)
Details for the testcase.
Example:
{"testcase": "..."}
tags (array of strings)
Tags for the testcase.
Example:
{"tags": ["...", "..."]}
The following example is a cURL request to add a testcase on a testsuite.
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
curl -X POST 'https://demo.attackforge.com/api/ss/testsuite/5eac95f1e594ea09107e9bb5/testcase' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{"testcase": "Verify X, Y and Z","tags": ["01", "Web App"]}'
Response contains a status.
{"status": "Added Testcase to Testsuite"}