AttackForge Enterprise

UpdateTestcase

This method can be used for the following functionality: Update a testcase on a project that this user must have Edit access to.

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

PUT /api/ss/project/:projectId/testcase/:testcaseId HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

projectId (string)

Id of the project.

Example:

PUT /api/ss/project/5e7c29afa3362408cf502a11/testcase/:testcaseId HTTP/1.1

testcaseId (string)

Id of the testcase.

Example:

PUT /api/ss/project/:projectId/testcase/5e7c29afa3362408cf502a18 HTTP/1.1

status (string)

Update status. Must be one of the following: Tested, Not Tested, Not Applicable, Testing In Progress

Example:

{
"status": "Tested"
}

Example

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

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

curl -X PUT 'https://demo.attackforge.com/api/ss/project/5e7c29afa3362408cf502a11/testcase/5e7c29afa3362408cf502a18' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"status": "Tested"
}'

Response

Response contains a status.

{
"status": "Testcase Updated"
}