AttackForge Enterprise & AttackForge Core
Powered By GitBook
CreateTestsuite
This method can be used for the following functionality: Create a new testsuite on AttackForge.

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
POST /api/ss/testsuite HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

name (string)
Name of the testsuite.
Example:
1
{
2
"name": "..."
3
}
Copied!
description (string)
Brief description of the testsuite.
Example:
1
{
2
"description": "..."
3
}
Copied!
tags (array of strings)
Tags for the testsuite.
Example:
1
{
2
"tags": ["...", "..."]
3
}
Copied!

Example

The following example is a cURL request to create a new testsuite.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X POST 'https://demo.attackforge.com/api/ss/testsuite' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
2
"name": "5-day Web App Pentest",
3
"description": "Methodology for a 5-day web app pentest.",
4
"tags": ["Web App", "5-days"]
5
}'
Copied!

Response

Response contains a status.
1
{
2
"status": "Testsuite Created"
3
}
Copied!
Last modified 11mo ago