Assign an Asset to a Profile API

Use this API to assign an asset to a profile.

POST/fim/v3/profiles/{profileId}/assets

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

assetIdsForProfile  Mandatory  String The UUID of the asset you want to assign to the profile.

SampleSample

API Request

curl -X POST <qualys_base_url>/fim/v3/profiles/{profileId}/assets 
-H 'authorization: Bearer <token>' 
-H 'content-type: application/json' 
-d @request.json

Contents of request.json:

{
        "assetIdsForProfile": [
                "asset uuid 1", “asset uuid2”
        ]
}

Response

{
   "status": "ACTIVATED"
}