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.
Update Application Version - API
/rest/{version}/applications/{appId}/version/{versionId}
Descriptor | Value |
---|---|
HTTP Method | PUT |
Description | Updates the specified application version's name and/or date. |
Required Permission | Manage Applications |
Version Introduced | 2.5.1 |
Changes in 2.8.3 | Added "versionTimezone" parameter. |
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 | No | The new name to assign to the application version. |
versionDate | Date | Yes | The date for the application version, in the format yyyy-MM-ddThh:mm:ss Note: 2.8.2.3 API versions and older only allow yyyy-MM-dd |
versionTimezone | String | Yes | List of available Server Time Zone Options for API Calls. Note: 2.8.2.3 API versions and older only allow yyyy-MM-dd and will be defaulted to midnight of the system time zone. |
Sample Call:
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X PUT --data 'versionName=Version 1.1&versionDate=2017-08-02' http://localhost:8080/threadfix/rest/latest/applications/45/version/27
Sample Output:
Values for date are returned as Epoch time in milliseconds.
{
"message": "",
"success": true,
"responseCode": -1,
"object": {
"id": 1,
"name": "Version 1.1",
"date": 1501650000
}
}
www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.
This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.