Use this API to assign a tag to a profile.
Using this API, only tags that contain FIM activated assets can be assigned to profile.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
assetTagIdsForProfile | Mandatory | String | List of asset tag ids to which you want to assign to the profiles. |
API Request
curl -X POST
<qualys_base_url>
/fim/v3/profiles/{profileId}/assettags
-H 'authorization: Bearer <token>'
-H 'content-type: application/json'
-d @request.json
Contents of request.json:
{
" assetTagIdsForProfile": [
"tag id 1", “tag id 2”
]
}
Response
{
"assetTagsAdded": true
}