Add Tags to Lab Asset Tags API

Use this API to add tags to the lab asset tags list.

POST/sm/v1/lab-tags

Input ParametersInput Parameters

Parameter Mandatory/
Optional
Data Type Description
ids Mandatory List Provide the list of tag IDs.
user Optional String Provide the details of a user such as ID and name.
id Optional String Provide the ID of the user.
name Optional String Provide the name of the user.

Sample: Add Tags to Lab Asset Tags ListSample: Add Tags to Lab Asset Tags List

API Request

curl -X POST
'<qualys_base_url>/sm/v1/lab-tags'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
  "ids": [4561,4562],
   "user": {
      "id": "bfd96a2f-854b-f8fd-8005-69374a3cd2b3",
      "name": "Username"
      }
    }'

API Response

{
  "body": {
    "success": {
      "ids": [
        4561
      ],
      "message": "Ids are processed"
    },
    "failure": {
      "ids": [
        4562
      ],
      "message": "Ids are Invalid"
    }
  }
}