Assign an Asset to a Profile API
Use this API to assign an asset to a profile.
Input ParametersInput Parameters
Parameter |
Mandatory/ |
Data Type |
Description |
---|---|---|---|
assetIdsForProfile | Mandatory | String | The UUID of the asset you want to assign to the profile. |
Sample: Assign an asset to a profileSample: Assign an asset to a profile
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"
}