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.

Add Tag to Application - API

/rest/{version}/applications/{appId}/tags/add/{tagId}


Descriptor

Value

HTTP Method

POST

Description

Attaches the tag with the given tagId to the app with the given appId.

Required Permission

Manage Applications

Version Introduced2.3.0
Changes in 2.7.5Added "policyStatuses" to the REST call response.


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

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


Sample Call:

curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST http://localhost:8080/threadfix/rest/latest/applications/1/tags/add/1


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": {
        "id": 1,
        "name": "New Application Name",
        "url": "http://localhost:8080",
        "uniqueId": "12345",
        "applicationCriticality": {
            "id": 4,
            "name": "Critical"
        },
		"policyStatuses": [
            {
                "id": 3
            }
        ],
        "tags": [
            {
                "id": 3,
                "name": "HIPAA",
                "type": "APPLICATION"
            },
            {
                "id": 1,
                "name": "PCI",
                "type": "APPLICATION"
            }
        ],
        "team": {
            "name": "New Team Name",
            "id": 1
        }
    }
}

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.