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 Scan Metadata Key - API

Deprecated as of version 2.7.5. Use Edit Metadata Key - API instead.


/rest/{version}/customize/scanmetadata/keys/{metadataKeyId}/update


Descriptor

Value

HTTP Method

POST

Description

Updates existing scan metadata key

Required Permission

Manage Scan Metadata Keys

Version Introduced2.7.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

Available Values

key

String

No

The updated name to assign the new metadata key.

N/A

active

String

No

Sets the meta data key to active or inactive.

“TRUE”, “FALSE”

Sample Call:


curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data "key=Oh, I gotta brand new pair of rollerskates Title&active=false" http://localhost:8080/threadfix/rest/latest/customize/scanmetadata/keys/{metadataKeyId}/update

Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": {
        "id": 1,
        "active": false,
        "key": "Oh, I gotta brand new pair of rollerskates"
    }
}

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.