Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create Application

/rest/{version}/teams/
{
teamId}/applications/new

Descriptor

Value

HTTP Method

POST

Description

Creates an application under the given team with id of teamId.

Required Permission

Manage Applications

Version Introduced2.3.0

Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.

AuthorizationAPIKEY {apiKey}YesAPI being used to execute API call.

Request POST Data Parameters

Parameter

Value

Required

Description

name

String

Yes

The name of the new application that is being created.

url

String

no

The URL of where the application being assessed lives.

Sample Call:

Code Block
languagebash
themeEclipse
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'name=Test App&url=http://example.com' http://localhost:8080/threadfix/rest/latest/teams/1/applications/new

Sample Output:

Code Block
themeEclipse
{    
    "message":
 "",
   
    "success":
true,    
 true,
    "responseCode":
 -1,
   
    "object":
{        
 {
        "id":
2,        
 38,
        "name":
 "
Test App
API team",
       
        "url":
       
        "uniqueId":
null,        
 null,
        "applicationCriticality":
{            
 {
            "id":
1,            
 1,
            "name":
 "Low"
        },        
        },
        "policyStatuses": [],
        "description": null,
        "releaseFrequency": "UNKNOWN",
        "testEnvironment": null,
        "grcApplication":
null,        
 null,
        "scans":
 [],
       
        "infoVulnCount":
0,        
 0,
        "lowVulnCount":
0,        
 0,
        "mediumVulnCount":
0,        
 0,
        "highVulnCount":
0,        
 0,
        "criticalVulnCount":
0,         "totalVulnCount": 0,        
 0,
        "totalVulnCount": 0,
        "isInternal": false,
        "unassignedVulnCount": 0,
        "waf":
null,        
 null,
        "organization":
{            
 {
            "name":
 "Test
Team",
           
            "id":
1         }     }
 8
        }
    }
}

Page Tree
rootApplications API