As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Create Application Version

/rest/{version}/applications/{appId}/version

Descriptor

Value

HTTP Method

POST

Description

Creates an application version for the specified application.

Required Permission

Manage Applications

Version Introduced

2.5.1

Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

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

Request POST Data Parameters

Parameter

Value

Required

Description

versionName

String

Yes

The name of the new application version that is being created.

versionDate

Date

Yes

The date for the application version, in the format yyyy-MM-dd.

Sample Call:

curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'versionName=Version 1.0&versionDate=2017-08-01' http://localhost:8080/threadfix/rest/latest/applications/1/version

Sample Output:

Values for date are returned as Epoch time in milliseconds.

{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": {
        "id": 1,
        "name": "Version 1.0",
        "date": 1501563600000
    }
}


  • No labels